FreeBSD Bugzilla – Attachment 180993 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]
Proposed fix
pw.diff (text/plain), 1.08 KB, created by
Eugene Grosbein
on 2017-03-20 13:19:31 UTC
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Eugene Grosbein
Created:
2017-03-20 13:19:31 UTC
Size:
1.08 KB
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 20:17:36.624340000 +0700 >@@ -1177,7 +1177,7 @@ pw_user_add(int argc, char **argv, char > char line[_PASSWORD_LEN+1], path[MAXPATHLEN]; > char *gecos, *homedir, *skel, *walk, *userid, *groupid, *grname; > char *default_passwd, *name, *p; >- const char *cfg; >+ const char *cfg = NULL; > login_cap_t *lc; > FILE *pfp, *fp; > intmax_t id = -1; >@@ -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 : ""; >@@ -1485,7 +1488,7 @@ pw_user_mod(int argc, char **argv, char > struct group *grp; > StringList *groups = NULL; > char args[] = "C:qn:u:c:d:e:p:g:G:mM:l:k:s:w:L:h:H:NPYy:"; >- const char *cfg; >+ const char *cfg = NULL; > char *gecos, *homedir, *grname, *name, *newname, *walk, *skel, *shell; > char *passwd, *class, *nispasswd; > login_cap_t *lc;
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