lookupGroupId: add implementation for go1.6

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2017-06-15 12:07:52 -05:00
parent 68651d77d6
commit bbedbb3eaa
4 changed files with 113 additions and 2 deletions

View file

@ -40,7 +40,7 @@ var (
}
stat := info.Sys().(*syscall.Stat_t)
g, err := user.LookupGroupId(fmt.Sprintf("%d", stat.Gid))
g, err := lookupGroupID(fmt.Sprintf("%d", stat.Gid))
if err != nil {
return emptyKV, err
}