merge branch 'pr-1548'

LGTMs: @crosbymichael @mrunalp @cyphar
Closes #1548
This commit is contained in:
Aleksa Sarai 2017-08-05 13:02:46 +10:00
commit 22bbec1b7f
No known key found for this signature in database
GPG Key ID: 9E18AA267DDB8DB4
1 changed files with 2 additions and 2 deletions

View File

@ -358,8 +358,8 @@ func GetExecUser(userSpec string, defaults *ExecUser, passwd, group io.Reader) (
// Okay, so it's numeric. We can just roll with this.
}
} else if len(groups) > 0 && uidErr != nil {
// Supplementary group ids only make sense if in the implicit form for non-numeric users.
} else if len(groups) > 0 {
// Supplementary group ids only make sense if in the implicit form.
user.Sgids = make([]int, len(groups))
for i, group := range groups {
user.Sgids[i] = group.Gid