diff options
author | jkh <jkh@FreeBSD.org> | 1995-02-26 23:28:00 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-02-26 23:28:00 +0000 |
commit | 4a6435a5dccb3ee06983aff4938727471650f8b3 (patch) | |
tree | 85f0e8235ebf97601ba0055d2830348785544bb6 /libexec/tftpd | |
parent | be2ef7df5b8c874497bc98eaea08abd29b754265 (diff) | |
download | FreeBSD-src-4a6435a5dccb3ee06983aff4938727471650f8b3.zip FreeBSD-src-4a6435a5dccb3ee06983aff4938727471650f8b3.tar.gz |
I think the security check to invalidate ALL write requests was just a little
excessive, and violates the specification defined in the manpage to boot.
Diffstat (limited to 'libexec/tftpd')
-rw-r--r-- | libexec/tftpd/tftpd.c | 4 |
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); /* |