From 6dbb9931d2ee83bce8f859c3b8e126e2860a9105 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 11 May 2022 00:21:00 +0200 Subject: [PATCH] @ sign for distinguishing acl user names --- acl.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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;; -- 2.39.2