FreeBSD Bugzilla – Attachment 180987 Details for
Bug 217934
/etc/pw.conf is being ignored by pw
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
respect defaultgroup specified in pw.conf
defgroup.diff (text/plain), 449 bytes, created by
Eugene Grosbein
on 2017-03-20 10:51:02 UTC
(
hide
)
Description:
respect defaultgroup specified in pw.conf
Filename:
MIME Type:
Creator:
Eugene Grosbein
Created:
2017-03-20 10:51:02 UTC
Size:
449 bytes
patch
obsolete
>--- usr.sbin/pw/pw_user.c.orig 2017-03-20 17:40:09.225608000 +0700 >+++ usr.sbin/pw/pw_user.c 2017-03-20 17:42:04.036160000 +0700 >@@ -1356,6 +1356,9 @@ pw_user_add(int argc, char **argv, char > if (GETPWNAM(name) != NULL) > errx(EX_DATAERR, "login name `%s' already exists", name); > >+ if (!grname) >+ grname = cmdcnf->default_group; >+ > pwd = &fakeuser; > pwd->pw_name = name; > pwd->pw_class = cmdcnf->default_class ? cmdcnf->default_class : "";
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 217934
:
180987
|
180993