mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-20 06:26:21 +01:00
challenge: When using '--diff', do not attempt to chmod symlinks.
This is a followup to 2a2856d5cc
.
* guix/scripts/challenge.scm (make-directory-writable): Do not call
'make-file-writable' on symlinks.
This commit is contained in:
parent
1cde647cc0
commit
5d4b189120
1 changed files with 2 additions and 1 deletions
|
@ -316,7 +316,8 @@ (define (make-directory-writable directory)
|
|||
'chmod -R +w DIRECTORY'."
|
||||
(file-system-fold (const #t)
|
||||
(lambda (file stat _) ;leaf
|
||||
(make-file-writable file))
|
||||
(unless (eq? 'symlink (stat:type stat))
|
||||
(make-file-writable file)))
|
||||
(lambda (directory stat _) ;down
|
||||
(make-file-writable directory))
|
||||
(const #t) ;up
|
||||
|
|
Loading…
Reference in a new issue