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 @@ -61,25 +61,25 @@ void get_user_groups(struct privinfo *pi) { struct group *gr; struct passwd *pw; const char *user; 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; } } endgrent(); } void privinfo_expand_user_groups(struct privinfo *pi) |