aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-01-26 18:57:29 +0100
committerAlex Auvolat <alex@adnab.me>2020-01-26 18:57:29 +0100
commitb768b78406fbc33c09483c93eaddfda21be9aae8 (patch)
treec88f07bf46f04f6b98f1d2c80d7c9f3a5564f440
parent82402749e6edecc46d06c06b867fe39b8a3968d6 (diff)
downloadbottin-b768b78406fbc33c09483c93eaddfda21be9aae8.tar.gz
bottin-b768b78406fbc33c09483c93eaddfda21be9aae8.zip
Fix an issue with excluded attributes
-rw-r--r--acl.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/acl.go b/acl.go
index 3607d9c..8cb433f 100644
--- a/acl.go
+++ b/acl.go
@@ -45,7 +45,7 @@ func ParseACL(def []string) (ACL, error) {
attr, exclAttr := []string{}, []string{}
for _, s := range splitNoEmpty(parts[4]) {
if s[0] == '!' {
- exclAttr = append(exclAttr, s)
+ exclAttr = append(exclAttr, s[1:])
} else {
attr = append(attr, s)
}