FreeBSD Bugzilla – Attachment 5635 Details for
Bug 13346
Allow pw to use pwd_mkdb's -u option
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 668 bytes, created by
nbm
on 1999-08-24 09:50:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
nbm
Created:
1999-08-24 09:50:01 UTC
Size:
668 bytes
patch
obsolete
>Index: pwupd.c >=================================================================== >RCS file: /home/ncvs/src/usr.sbin/pw/pwupd.c,v >retrieving revision 1.8 >diff -u -r1.8 pwupd.c >--- pwupd.c 1999/02/23 07:15:11 1.8 >+++ pwupd.c 1999/08/20 07:08:02 >@@ -168,8 +168,12 @@ > */ > if (pwd != NULL) > fmtpwentry(pwbuf, pwd, PWF_MASTER); >- if ((rc = fileupdate(getpwpath(_MASTERPASSWD), 0644, pwbuf, pfx, l, mode)) != 0) >- rc = pwdb(NULL) == 0; >+ if ((rc = fileupdate(getpwpath(_MASTERPASSWD), 0644, pwbuf, pfx, l, mode)) != 0) { >+ if (mode == UPD_DELETE) >+ rc = pwdb(NULL) == 0; >+ else >+ rc = pwdb("-u", user, NULL) == 0; >+ } > } > } > return rc;
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 13346
: 5635