diff options
-rw-r--r-- | usr.sbin/pw/pw_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c index 1a93990..b70a410 100644 --- a/usr.sbin/pw/pw_user.c +++ b/usr.sbin/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; } } |