FreeBSD Bugzilla – Attachment 143610 Details for
Bug 189173
[PATCH] pw(8): Minor cosmetic cleanup of usr.sbin/pw/pwupd.c
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated patch
pw.patch (text/plain), 804 bytes, created by
fullermd
on 2014-06-10 10:06:33 UTC
(
hide
)
Description:
Updated patch
Filename:
MIME Type:
Creator:
fullermd
Created:
2014-06-10 10:06:33 UTC
Size:
804 bytes
patch
obsolete
>Index: pwupd.c >=================================================================== >--- pwupd.c (revision 264991) >+++ pwupd.c (working copy) >@@ -45,9 +45,6 @@ > > #include "pwupd.h" > >-#define HAVE_PWDB_C 1 >-#define HAVE_PWDB_U 1 >- > static char pathpwd[] = _PATH_PWD; > static char * pwpath = pathpwd; > >@@ -114,20 +111,15 @@ > > /* > * First, let's check the see if the database is alright >- * Note: -C is only available in FreeBSD 2.2 and above > */ >-#ifdef HAVE_PWDB_C > rc = pwdb("-C", (char *)NULL); /* Check only */ > if (rc == 0) { >-#else >- { /* No -C */ >-#endif > int pfd, tfd; > struct passwd *pw = NULL; > struct passwd *old_pw = NULL; > >- if (pwd != NULL) >- pw = pw_dup(pwd); >+ if (pwd != NULL) >+ pw = pw_dup(pwd); > > if (user != NULL) > old_pw = GETPWNAM(user);
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 189173
:
142184
| 143610