FreeBSD Bugzilla – Attachment 104466 Details for
Bug 144652
[PATCH] pwd_mkdb(8) copies comments to /etc/passwd
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 664 bytes, created by
Andre.Albsmeier
on 2010-03-11 11:30:02 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Andre.Albsmeier
Created:
2010-03-11 11:30:02 UTC
Size:
664 bytes
patch
obsolete
>--- usr.sbin/pwd_mkdb/pwd_mkdb.c.ORI 2009-06-10 21:11:21.000000000 +0200 >+++ usr.sbin/pwd_mkdb/pwd_mkdb.c 2010-03-11 11:53:47.000000000 +0100 >@@ -555,11 +555,12 @@ > error("put"); > } > } >- /* Create original format password file entry */ >- if (is_comment && makeold){ /* copy comments */ >- if (fprintf(oldfp, "%s\n", line) < 0) >- error("write old"); >- } else if (makeold) { >+ /* Create original format password file entry. >+ * Don't copy comments since this could reveal >+ * encrypted passwords if entries have been >+ * simply commented out in master.passwd. >+ */ >+ if( makeold && !is_comment ) { > char uidstr[20]; > char gidstr[20];
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 144652
: 104466