]> git.plutz.net Git - shellwiki/commitdiff
@ sign for distinguishing acl user names
authorPaul Hänsch <paul@plutz.net>
Tue, 10 May 2022 22:21:00 +0000 (00:21 +0200)
committerPaul Hänsch <paul@plutz.net>
Tue, 10 May 2022 22:21:00 +0000 (00:21 +0200)
acl.sh

diff --git a/acl.sh b/acl.sh
index 9ec2597dc40eeac263f7bccbd49a0b297e3252b6..74fc8dc38419f9c556ff98e3882631ca709f6d8b 100755 (executable)
--- 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;;