summaryrefslogtreecommitdiffstats
path: root/pw
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
commit972568102323c8d0c9c190a7b280ae66c8e8b924 (patch)
tree4b8f027a306d4a49dfd8315583973f69f90adf77 /pw
parent229d81f87f201de453de7aeb4858c52b8ed6837c (diff)
downloadpw-darwin-972568102323c8d0c9c190a7b280ae66c8e8b924.tar.gz
pw-darwin-972568102323c8d0c9c190a7b280ae66c8e8b924.tar.zst
pw-darwin-972568102323c8d0c9c190a7b280ae66c8e8b924.zip
Fix obvious braino in assignment statement. usermod -g should work again.
PR: 17877 Submitted by: pius@zyan.com
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;
}
}