Check exit status of fs sa
This commit is contained in:
parent
d73f1b8c65
commit
ee95a22e53
|
@ -95,7 +95,8 @@
|
||||||
acl))
|
acl))
|
||||||
|
|
||||||
(define (set-acl! dir acl)
|
(define (set-acl! dir acl)
|
||||||
(run (,fs setacl ,dir -acl ,@(acl->strings acl) -clear)))
|
(if (not (zero? (run (,fs setacl ,dir -acl ,@(acl->strings acl) -clear))))
|
||||||
|
(error "set-acl!: error while setting ACL" dir acl)))
|
||||||
|
|
||||||
(define (add-acl! dir acl)
|
(define (add-acl! dir acl)
|
||||||
(run (,fs setacl ,dir -acl ,@(acl->strings acl))))
|
(run (,fs setacl ,dir -acl ,@(acl->strings acl))))
|
||||||
|
|
Loading…
Reference in New Issue