FreeBSD Bugzilla – Attachment 68692 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), 831 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:
831 bytes
patch
obsolete
>--- libexec/tftpd/tftpd.c.orig Thu Jul 27 12:02:59 2006 >+++ libexec/tftpd/tftpd.c Thu Jul 27 12:07:57 2006 >@@ -588,16 +588,28 @@ 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; > } > } > if (dirp->name != NULL) > *filep = filename = pathname; >- else if (mode == RRQ) >- return (err); >+ else { >+ if (mode == RRQ) { >+ return (err); >+ } else { >+ if (!create_new) >+ return (err); >+ } >+ } > } > if (options[OPT_TSIZE].o_request) { > if (mode == RRQ)
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