diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-12-19 18:11:07 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-12-19 18:11:07 +0000 |
commit | 2539cdcd28f13a5ad7f93f73c1308e1e7119d7ab (patch) | |
tree | 13d2f93542cc8caffd3557e44ccb665ef980966e /c/src/libnetworking/lib/tftpDriver.c | |
parent | 2001-12-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-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 'c/src/libnetworking/lib/tftpDriver.c')
-rw-r--r-- | c/src/libnetworking/lib/tftpDriver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/libnetworking/lib/tftpDriver.c b/c/src/libnetworking/lib/tftpDriver.c index bafaaa5fc5..e3367177c6 100644 --- a/c/src/libnetworking/lib/tftpDriver.c +++ b/c/src/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); |