summaryrefslogtreecommitdiffstats
path: root/libexec/tftpd
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/tftpd')
-rw-r--r--libexec/tftpd/tftpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/tftpd/tftpd.c b/libexec/tftpd/tftpd.c
index 2c74e3d..7500abf 100644
--- a/libexec/tftpd/tftpd.c
+++ b/libexec/tftpd/tftpd.c
@@ -375,11 +375,11 @@ validate_access(filep, mode)
/*
* Relative file name: search the approved locations for it.
- * Don't allow write requests or ones that avoid directory
+ * Don't allow write requests that avoid directory
* restrictions.
*/
- if (mode != RRQ || !strncmp(filename, "../", 3))
+ if (!strncmp(filename, "../", 3))
return (EACCESS);
/*
OpenPOWER on IntegriCloud