activation: Fix deletion of setuid programs.
* guix/build/activation.scm (activate-setuid-programs): When %SETUID-DIRECTORY exists, pass the right file names to 'delete-file'.
This commit is contained in:
parent
e102f94097
commit
ad896f23a5
|
@ -19,6 +19,7 @@
|
||||||
(define-module (guix build activation)
|
(define-module (guix build activation)
|
||||||
#:use-module (guix build utils)
|
#:use-module (guix build utils)
|
||||||
#:use-module (ice-9 ftw)
|
#:use-module (ice-9 ftw)
|
||||||
|
#:use-module (srfi srfi-26)
|
||||||
#:export (activate-etc
|
#:export (activate-etc
|
||||||
activate-setuid-programs))
|
activate-setuid-programs))
|
||||||
|
|
||||||
|
@ -85,7 +86,8 @@
|
||||||
(format #t "setting up setuid programs in '~a'...~%"
|
(format #t "setting up setuid programs in '~a'...~%"
|
||||||
%setuid-directory)
|
%setuid-directory)
|
||||||
(if (file-exists? %setuid-directory)
|
(if (file-exists? %setuid-directory)
|
||||||
(for-each delete-file
|
(for-each (compose delete-file
|
||||||
|
(cut string-append %setuid-directory "/" <>))
|
||||||
(scandir %setuid-directory
|
(scandir %setuid-directory
|
||||||
(lambda (file)
|
(lambda (file)
|
||||||
(not (member file '("." ".."))))
|
(not (member file '("." ".."))))
|
||||||
|
|
Loading…
Reference in New Issue