mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Bruce pointed out, that a misleading warning would be issued
in an (unlikely) border case (maxgroups==1 and the user is on an /etc/group line for the same group and that group only ...). Now this case is dealt with as before ...
This commit is contained in:
parent
390784fbeb
commit
b5fd1704b2
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ getgrouplist(uname, agroup, groups, grpcnt)
|
|||
*/
|
||||
setgrent();
|
||||
while (grp = getgrent()) {
|
||||
for (i = 1; i < ngroups; i++) {
|
||||
for (i = 0; i < ngroups; i++) {
|
||||
if (grp->gr_gid == groups[i])
|
||||
goto skip;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue