diff options
Diffstat (limited to 'acl.go')
-rw-r--r-- | acl.go | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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) { |