diff options
Diffstat (limited to 'src/userprivs.c')
-rw-r--r-- | src/userprivs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/userprivs.c b/src/userprivs.c index 46e546f..eb424fe 100644 --- a/src/userprivs.c +++ b/src/userprivs.c @@ -67,13 +67,13 @@ get_user_groups(struct privinfo *pi) pw = getpwuid(pi->uid); if (!pw) return; user = pw->pw_name; setgrent(); - while (gr = getgrent()) { + while ((gr = getgrent())) { char **p; for (p = gr->gr_mem; *p; p++) if (strcmp(*p, user) == 0) { privinfo_add_grpgid(pi, gr->gr_gid); break; } |