forked from Imagelibrary/rtems
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:
@@ -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>
|
2001-12-07 Eric Norum <eric.norum@usask.ca>
|
||||||
|
|
||||||
* lib/tftpDriver.c: Restore write capability.
|
* lib/tftpDriver.c: Restore write capability.
|
||||||
|
|||||||
@@ -507,7 +507,7 @@ static int rtems_tftp_eval_path(
|
|||||||
/*
|
/*
|
||||||
* Reject attempts to open() directories
|
* Reject attempts to open() directories
|
||||||
*/
|
*/
|
||||||
if (flags)
|
if (flags & RTEMS_LIBIO_PERMS_RDWR)
|
||||||
set_errno_and_return_minus_one( EISDIR );
|
set_errno_and_return_minus_one( EISDIR );
|
||||||
if (isRelative) {
|
if (isRelative) {
|
||||||
cp = malloc (strlen(pathloc->node_access)+strlen(pathname)+1);
|
cp = malloc (strlen(pathloc->node_access)+strlen(pathname)+1);
|
||||||
|
|||||||
@@ -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>
|
2001-12-07 Eric Norum <eric.norum@usask.ca>
|
||||||
|
|
||||||
* lib/tftpDriver.c: Restore write capability.
|
* lib/tftpDriver.c: Restore write capability.
|
||||||
|
|||||||
@@ -507,7 +507,7 @@ static int rtems_tftp_eval_path(
|
|||||||
/*
|
/*
|
||||||
* Reject attempts to open() directories
|
* Reject attempts to open() directories
|
||||||
*/
|
*/
|
||||||
if (flags)
|
if (flags & RTEMS_LIBIO_PERMS_RDWR)
|
||||||
set_errno_and_return_minus_one( EISDIR );
|
set_errno_and_return_minus_one( EISDIR );
|
||||||
if (isRelative) {
|
if (isRelative) {
|
||||||
cp = malloc (strlen(pathloc->node_access)+strlen(pathname)+1);
|
cp = malloc (strlen(pathloc->node_access)+strlen(pathname)+1);
|
||||||
|
|||||||
@@ -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>
|
2001-12-07 Eric Norum <eric.norum@usask.ca>
|
||||||
|
|
||||||
* lib/tftpDriver.c: Restore write capability.
|
* lib/tftpDriver.c: Restore write capability.
|
||||||
|
|||||||
@@ -507,7 +507,7 @@ static int rtems_tftp_eval_path(
|
|||||||
/*
|
/*
|
||||||
* Reject attempts to open() directories
|
* Reject attempts to open() directories
|
||||||
*/
|
*/
|
||||||
if (flags)
|
if (flags & RTEMS_LIBIO_PERMS_RDWR)
|
||||||
set_errno_and_return_minus_one( EISDIR );
|
set_errno_and_return_minus_one( EISDIR );
|
||||||
if (isRelative) {
|
if (isRelative) {
|
||||||
cp = malloc (strlen(pathloc->node_access)+strlen(pathname)+1);
|
cp = malloc (strlen(pathloc->node_access)+strlen(pathname)+1);
|
||||||
|
|||||||
Reference in New Issue
Block a user