diff options
author | davidn <davidn@FreeBSD.org> | 2000-06-18 02:48:56 +0000 |
---|---|---|
committer | davidn <davidn@FreeBSD.org> | 2000-06-18 02:48:56 +0000 |
commit | 15756f138e98ce27f1b1e27555f863e19914110d (patch) | |
tree | f99a9073d2cd0462b4985e3f0ef7f8d3cdbf87f2 /usr.sbin/pw | |
parent | a0d2bc60bbd1ae055e3dd6b9055ab44d547cf0c3 (diff) | |
download | FreeBSD-src-15756f138e98ce27f1b1e27555f863e19914110d.zip FreeBSD-src-15756f138e98ce27f1b1e27555f863e19914110d.tar.gz |
Fix obvious braino in assignment statement. usermod -g should work again.
PR: 17877
Submitted by: pius@zyan.com
Diffstat (limited to 'usr.sbin/pw')
-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; } } |