FreeBSD Bugzilla – Attachment 5339 Details for
Bug 12828
passwd(1) doesn't recognize comments
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 639 bytes, created by
yasuf
on 1999-07-27 03:50:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
yasuf
Created:
1999-07-27 03:50:00 UTC
Size:
639 bytes
patch
obsolete
>Index: usr.bin/chpass/pw_copy.c >=================================================================== >RCS file: /home/ncvs/src/usr.bin/chpass/pw_copy.c,v >retrieving revision 1.7 >diff -u -r1.7 pw_copy.c >--- pw_copy.c 1999/04/25 22:37:56 1.7 >+++ pw_copy.c 1999/07/23 04:56:26 >@@ -85,6 +85,15 @@ > goto err; > continue; > } >+ for (p = buf; *p != '\n'; p++) >+ if (*p != ' ' && *p != '\t') >+ break; >+ if (*p == '#' || *p == '\n') { >+ (void)fprintf(to, "%s", buf); >+ if (ferror(to)) >+ goto err; >+ continue; >+ } > if (!(p = strchr(buf, ':'))) { > warnx("%s: corrupted entry", _PATH_MASTERPASSWD); > pw_error(NULL, 0, 1);
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 12828
: 5339