diff --git a/scsh/afs/afs-fs.scm b/scsh/afs/afs-fs.scm index 2e72461..2d6b72a 100644 --- a/scsh/afs/afs-fs.scm +++ b/scsh/afs/afs-fs.scm @@ -95,7 +95,8 @@ 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) (run (,fs setacl ,dir -acl ,@(acl->strings acl))))