aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Nugent <davidn@FreeBSD.org>2000-06-18 02:48:56 +0000
committerDavid Nugent <davidn@FreeBSD.org>2000-06-18 02:48:56 +0000
commit6b13b96dad7d98a25ca566d255223859b4d40960 (patch)
tree18f022ab00fe72bcaed9f7c5769fe7dea5c2c517
parent976a1c910673d4c62f6003c1fd4a274e556e2922 (diff)
Notes
-rw-r--r--usr.sbin/pw/pw_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c
index 1a9399032805d..b70a4102a5217 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;
}
}