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.
parent
1cde647cc0
commit
5d4b189120
|
@ -316,7 +316,8 @@ specified in COMPARISON-REPORT."
|
|||
'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
|
||||
|
|
Reference in New Issue