aboutsummaryrefslogtreecommitdiff
path: root/src/userprivs.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2017-11-10 11:08:35 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2017-11-10 11:08:35 +0200
commit2f1214a79a6befb629466c3e81a993123733a2fe (patch)
treeacf5e1cc9289cf4b655aa873d0b01642090b1391 /src/userprivs.c
parent3457c19206858d3e8155dcfc776df8818d05824b (diff)
downloadsmap-2f1214a79a6befb629466c3e81a993123733a2fe.tar.gz
smap-2f1214a79a6befb629466c3e81a993123733a2fe.tar.bz2
Placate cc warnings
Diffstat (limited to 'src/userprivs.c')
-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.