Fix obvious braino in assignment statement. usermod -g should work again.
PR: 17877 Submitted by: pius@zyan.com
This commit is contained in:
parent
976a1c9106
commit
6b13b96dad
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user