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/gid.go | |
parent | b6f1fcb4f2d3cfb1eea95e9e0c6ae11f0659ba3a (diff) |
clean up
Diffstat (limited to 'src/nshd/hackers_git/gid.go')
-rw-r--r-- | src/nshd/hackers_git/gid.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nshd/hackers_git/gid.go b/src/nshd/hackers_git/gid.go index ff95309..ee8c10d 100644 --- a/src/nshd/hackers_git/gid.go +++ b/src/nshd/hackers_git/gid.go @@ -11,11 +11,11 @@ func name2gid(name string) int32 { } } -func gid2name(gid int32) string { +func gid2name(gid int32) (string, bool) { gr, err := getgr.ByGid(gid) if gr == nil || err != nil { - return "" + return "", false } else { - return gr.Name + return gr.Name, true } } |