FreeBSD Bugzilla – Attachment 156961 Details for
Bug 187653
pw(8): 'pw user mod' is creating users instead of changing them.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for preventing attempts to modify users other than local/NIS
file_187653.txt (text/plain), 645 bytes, created by
tmwalaszek
on 2015-05-19 21:12:29 UTC
(
hide
)
Description:
Patch for preventing attempts to modify users other than local/NIS
Filename:
MIME Type:
Creator:
tmwalaszek
Created:
2015-05-19 21:12:29 UTC
Size:
645 bytes
patch
obsolete
>--- pw_user.c.orig 2015-05-20 00:50:44.672566903 +0200 >+++ pw_user.c 2015-05-20 00:59:27.732982683 +0200 >@@ -332,6 +332,9 @@ > if (a_name == NULL && pwd == NULL) /* Try harder */ > pwd = GETPWUID(atoi(a_uid->val)); > >+ if ( !(pwd->pw_fields & _PWF_SOURCE) && mode != M_PRINT ) >+ errx(EX_DATAERR, "Operations on users other than local/NIS are not supported"); >+ > if (pwd == NULL) { > if (mode == M_PRINT && getarg(args, 'F')) { > fakeuser.pw_name = a_name ? a_name->val : "nouser";
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 187653
: 156961