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'.
This commit is contained in:
Joel Sherrill
2001-12-19 18:11:07 +00:00
parent 989b9383f8
commit 2539cdcd28
6 changed files with 21 additions and 3 deletions

View File

@@ -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.

View File

@@ -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);

View File

@@ -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.

View File

@@ -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);

View File

@@ -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.

View File

@@ -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);