Fix obvious braino in assignment statement. usermod -g should work again.

PR:		17877
Submitted by:	pius@zyan.com
This commit is contained in:
David Nugent 2000-06-18 02:48:56 +00:00
parent 976a1c9106
commit 6b13b96dad

View File

@ -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;
}
}