summaryrefslogtreecommitdiffabout
path: root/src/userprivs.c
Side-by-side diff
Diffstat (limited to 'src/userprivs.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/userprivs.c2
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;
}

Return to:

Send suggestions and report system problems to the System administrator.