Assume that files in PATH are always executable, don't check.
This commit is contained in:
parent
46cdd67321
commit
c889c878ef
|
@ -106,7 +106,7 @@
|
||||||
(define (dir-executables dir)
|
(define (dir-executables dir)
|
||||||
(if (file-readable? dir)
|
(if (file-readable? dir)
|
||||||
(map file-name-nondirectory
|
(map file-name-nondirectory
|
||||||
(filter executable? (glob (string-append dir "/*"))))
|
(glob (string-append dir "/*")))
|
||||||
'()))
|
'()))
|
||||||
|
|
||||||
(define (executable? name) ;; TODO maybe check if executable by this user
|
(define (executable? name) ;; TODO maybe check if executable by this user
|
||||||
|
|
Loading…
Reference in New Issue