aboutsummaryrefslogtreecommitdiff
path: root/acl.go
diff options
context:
space:
mode:
Diffstat (limited to 'acl.go')
-rw-r--r--acl.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/acl.go b/acl.go
index 8cb433f..483e8fd 100644
--- a/acl.go
+++ b/acl.go
@@ -29,10 +29,14 @@ type ACLEntry struct {
}
func splitNoEmpty(s string) []string {
- if len(s) == 0 {
- return []string{}
+ tmp := strings.Split(s, " ")
+ ret := []string{}
+ for _, s := range tmp {
+ if len(s) > 0 {
+ ret = append(ret, s)
+ }
}
- return strings.Split(s, " ")
+ return ret
}
func ParseACL(def []string) (ACL, error) {