Generate "none" for empty afs-permissions.
This commit is contained in:
parent
4e7d93b126
commit
c73875d993
|
@ -50,13 +50,15 @@
|
||||||
s))
|
s))
|
||||||
|
|
||||||
(define (afs-permissions->string afs-perms)
|
(define (afs-permissions->string afs-perms)
|
||||||
(fold (lambda (perm s)
|
(if (null? (enum-set->list afs-perms))
|
||||||
(if (enum-set-member? afs-perms perm)
|
"none"
|
||||||
(string-append s (string (afs-permission->char perm)))
|
(fold (lambda (perm s)
|
||||||
s))
|
(if (enum-set-member? afs-perms perm)
|
||||||
""
|
(string-append s (string (afs-permission->char perm)))
|
||||||
(vector->list the-afs-permissions)))
|
s))
|
||||||
|
""
|
||||||
|
(vector->list the-afs-permissions))))
|
||||||
|
|
||||||
(define all-afs-permissions
|
(define all-afs-permissions
|
||||||
(make-afs-permissions (map char->afs-permission (string->list "rlidwka"))))
|
(make-afs-permissions (map char->afs-permission (string->list "rlidwka"))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue