mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-24 11:39:46 -05:00
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
1 changed files with 3 additions and 1 deletions
|
@ -19,6 +19,7 @@
|
|||
(define-module (guix build activation)
|
||||
#:use-module (guix build utils)
|
||||
#:use-module (ice-9 ftw)
|
||||
#:use-module (srfi srfi-26)
|
||||
#:export (activate-etc
|
||||
activate-setuid-programs))
|
||||
|
||||
|
@ -85,7 +86,8 @@ (define (make-setuid-program prog)
|
|||
(format #t "setting up setuid programs in '~a'...~%"
|
||||
%setuid-directory)
|
||||
(if (file-exists? %setuid-directory)
|
||||
(for-each delete-file
|
||||
(for-each (compose delete-file
|
||||
(cut string-append %setuid-directory "/" <>))
|
||||
(scandir %setuid-directory
|
||||
(lambda (file)
|
||||
(not (member file '("." ".."))))
|
||||
|
|
Loading…
Reference in a new issue