X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=acl.sh;h=74fc8dc38419f9c556ff98e3882631ca709f6d8b;hb=c2055317a550e25caa09340c23c3ce3c87536419;hp=9ec2597dc40eeac263f7bccbd49a0b297e3252b6;hpb=f9cfcde441afed9d6db96e201935b6208903046d;p=shellwiki diff --git a/acl.sh b/acl.sh index 9ec2597..74fc8dc 100755 --- a/acl.sh +++ b/acl.sh @@ -64,10 +64,10 @@ acl_read(){ "Known:") return 1;; "+Known:read") return 0;; "-Known:read") return 1;; - "${USER_NAME}:read") return 0;; - "${USER_NAME}:") return 1;; - "+{$USER_NAME}:read") return 0;; - "-{$USER_NAME}:read") return 1;; + "@${USER_NAME}:read") return 0;; + "@${USER_NAME}:") return 1;; + "+@{$USER_NAME}:read") return 0;; + "-@{$USER_NAME}:read") return 1;; esac case $acl in "All:read") return 0;; @@ -96,10 +96,10 @@ acl_write(){ "Known:") return 1;; "+Known:write") return 0;; "-Known:write") return 1;; - "${USER_NAME}:write") return 0;; - "${USER_NAME}:") return 1;; - "+{$USER_NAME}:write") return 0;; - "-{$USER_NAME}:write") return 1;; + "@${USER_NAME}:write") return 0;; + "@${USER_NAME}:") return 1;; + "+@{$USER_NAME}:write") return 0;; + "-@{$USER_NAME}:write") return 1;; esac case $acl in "All:write") return 0;;