diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-09-07 23:58:08 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-09-07 23:58:08 -0600 |
commit | b09ba2f9f42c44402d0bd641789af9c04e6d4ee6 (patch) | |
tree | e10be24b4dd512996f20f36d82c74db782ef83b2 /src/nshd/hackers_git/hackers_parse.go | |
parent | b6f1fcb4f2d3cfb1eea95e9e0c6ae11f0659ba3a (diff) |
clean up
Diffstat (limited to 'src/nshd/hackers_git/hackers_parse.go')
-rw-r--r-- | src/nshd/hackers_git/hackers_parse.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nshd/hackers_git/hackers_parse.go b/src/nshd/hackers_git/hackers_parse.go index 77b9a13..46c878e 100644 --- a/src/nshd/hackers_git/hackers_parse.go +++ b/src/nshd/hackers_git/hackers_parse.go @@ -77,7 +77,7 @@ func parse_user_yaml(filename string) (ret user, err error) { } if iface, isSet := data["groups"]; !isSet { - ret.groups = make(map[string]bool, 0) + ret.groups = make([]string, 0) } else if ary, isTyp := iface.([]interface{}); !isTyp { errs = append(errs, "\"groups\" is not an array") } else { @@ -93,7 +93,7 @@ func parse_user_yaml(filename string) (ret user, err error) { } } if !e { - ret.groups = groups + ret.groups = set2list(groups) } } } |