summaryrefslogtreecommitdiffstats
path: root/pw
diff options
context:
space:
mode:
Diffstat (limited to 'pw')
-rw-r--r--pw/pw_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pw/pw_user.c b/pw/pw_user.c
index 1a93990..b70a410 100644
--- a/pw/pw_user.c
+++ b/pw/pw_user.c
@@ -468,7 +468,7 @@ pw_user(struct userconf * cnf, int mode, struct cargs * args)
gid_t newgid = (gid_t) GETGRNAM(cnf->default_group)->gr_gid;
if (newgid != pwd->pw_gid) {
edited = 1;
- pwd->pw_gid = pwd->pw_gid;
+ pwd->pw_gid = newgid;
}
}