From: Paul Hänsch Date: Tue, 10 May 2022 22:21:00 +0000 (+0200) Subject: @ sign for distinguishing acl user names X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=6dbb9931d2ee83bce8f859c3b8e126e2860a9105;p=shellwiki @ sign for distinguishing acl user names --- 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;;