summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-12-19 18:11:07 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-12-19 18:11:07 +0000
commit2539cdcd28f13a5ad7f93f73c1308e1e7119d7ab (patch)
tree13d2f93542cc8caffd3557e44ccb665ef980966e /cpukit
parent989b9383f8119a0ebd442c35eb2e2df52b3409db (diff)
downloadrtems-2539cdcd28f13a5ad7f93f73c1308e1e7119d7ab.tar.bz2
2001-12-18 Eric Norum <eric.norum@usask.ca>
* lib/tftpDriver.c: Allow chdir() to work on TFTP `directories' (path names with a / at the end) while disallowing open() operations on TFTP `directories'.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libnetworking/ChangeLog6
-rw-r--r--cpukit/libnetworking/lib/tftpDriver.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/libnetworking/ChangeLog b/cpukit/libnetworking/ChangeLog
index b53bf7ff43..9c60e8f2b3 100644
--- a/cpukit/libnetworking/ChangeLog
+++ b/cpukit/libnetworking/ChangeLog
@@ -1,3 +1,9 @@
+2001-12-18 Eric Norum <eric.norum@usask.ca>
+
+ * lib/tftpDriver.c: Allow chdir() to work on TFTP `directories'
+ (path names with a / at the end) while disallowing open() operations
+ on TFTP `directories'.
+
2001-12-07 Eric Norum <eric.norum@usask.ca>
* lib/tftpDriver.c: Restore write capability.
diff --git a/cpukit/libnetworking/lib/tftpDriver.c b/cpukit/libnetworking/lib/tftpDriver.c
index bafaaa5fc5..e3367177c6 100644
--- a/cpukit/libnetworking/lib/tftpDriver.c
+++ b/cpukit/libnetworking/lib/tftpDriver.c
@@ -507,7 +507,7 @@ static int rtems_tftp_eval_path(
/*
* Reject attempts to open() directories
*/
- if (flags)
+ if (flags & RTEMS_LIBIO_PERMS_RDWR)
set_errno_and_return_minus_one( EISDIR );
if (isRelative) {
cp = malloc (strlen(pathloc->node_access)+strlen(pathname)+1);