FreeBSD Bugzilla – Attachment 68693 Details for
Bug 100914
[patch] tftpd(8): libexec/tftpd: write access control
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 540 bytes, created by
Auster
on 2006-07-27 11:50:11 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Auster
Created:
2006-07-27 11:50:11 UTC
Size:
540 bytes
patch
obsolete
>--- libexec/tftpd/tftpd.c.orig Thu Jul 27 13:14:46 2006 >+++ libexec/tftpd/tftpd.c Thu Jul 27 13:17:28 2006 >@@ -538,8 +538,14 @@ validate_access(char **filep, int mode) > dirp->name, filename); > if (stat(pathname, &stbuf) == 0 && > (stbuf.st_mode & S_IFMT) == S_IFREG) { >- if ((stbuf.st_mode & S_IROTH) != 0) { >- break; >+ if (mode == RRQ) { >+ if ((stbuf.st_mode & S_IROTH) != 0) { >+ break; >+ } >+ } else { >+ if ((stbuf.st_mode & S_IWOTH) != 0) { >+ break; >+ } > } > err = EACCESS; > }
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 100914
:
68692
| 68693