Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148742309
D45026.id137893.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
597 B
Referenced Files
None
Subscribers
None
D45026.id137893.diff
View Options
diff --git a/libexec/tftpd/tftpd.c b/libexec/tftpd/tftpd.c
--- a/libexec/tftpd/tftpd.c
+++ b/libexec/tftpd/tftpd.c
@@ -687,10 +687,11 @@
* it's a /.
*/
for (dirp = dirs; dirp->name != NULL; dirp++) {
- if (dirp->len == 1 ||
- (!strncmp(filename, dirp->name, dirp->len) &&
- filename[dirp->len] == '/'))
- break;
+ if (dirp->len == 1)
+ break;
+ if (strncmp(filename, dirp->name, dirp->len) == 0 &&
+ filename[dirp->len] == '/')
+ break;
}
/* If directory list is empty, allow access to any file */
if (dirp->name == NULL && dirp != dirs)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 21, 12:00 AM (3 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30048519
Default Alt Text
D45026.id137893.diff (597 B)
Attached To
Mode
D45026: tftpd: Untangle a conditional.
Attached
Detach File
Event Timeline
Log In to Comment