FreeBSD Bugzilla – Attachment 10908 Details for
Bug 21704
enabling fingerd makes files world readable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.25 KB, created by
sa2c
on 2000-10-02 19:50:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
sa2c
Created:
2000-10-02 19:50:00 UTC
Size:
1.25 KB
patch
obsolete
>Index: finger.c >=================================================================== >RCS file: /home/ncvs/src/usr.bin/finger/finger.c,v >retrieving revision 1.15.2.3 >diff -u -r1.15.2.3 finger.c >--- finger.c 2000/09/15 21:51:00 1.15.2.3 >+++ finger.c 2000/10/02 18:04:06 >@@ -318,26 +318,19 @@ > > /* > * Traverse the list of possible login names and check the login name >- * and real name against the name specified by the user. If the name >- * begins with a '/', try to read the file of that name instead of >- * gathering the traditional finger information. >+ * and real name against the name specified by the user. > */ > if (mflag) > for (p = argv; *p; ++p) { >- if (**p != '/' || !show_text("", *p, "")) { >- if (((pw = getpwnam(*p)) != NULL) && !hide(pw)) >- enter_person(pw); >- else >- warnx("%s: no such user", *p); >- } >+ if (((pw = getpwnam(*p)) != NULL) && !hide(pw)) >+ enter_person(pw); >+ else >+ warnx("%s: no such user", *p); > } > else { > while ((pw = getpwent()) != NULL) { > for (p = argv, ip = used; *p; ++p, ++ip) >- if (**p == '/' && *ip != 1 >- && show_text("", *p, "")) >- *ip = 1; >- else if (match(pw, *p) && !hide(pw)) { >+ if (match(pw, *p) && !hide(pw)) { > enter_person(pw); > *ip = 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 21704
: 10908