From 2539cdcd28f13a5ad7f93f73c1308e1e7119d7ab Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 19 Dec 2001 18:11:07 +0000 Subject: 2001-12-18 Eric Norum * lib/tftpDriver.c: Allow chdir() to work on TFTP `directories' (path names with a / at the end) while disallowing open() operations on TFTP `directories'. --- cpukit/libnetworking/lib/tftpDriver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/libnetworking/lib/tftpDriver.c') 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); -- cgit v1.2.3