diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-04-24 23:06:50 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-04-24 23:06:50 +0000 |
commit | eb22ebe0eceb202984cc9dc1937fed1bf7fa13b8 (patch) | |
tree | 7370e186b1fb9a53c1c627807847fc6400f947c8 | |
parent | 2001-04-24 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-eb22ebe0eceb202984cc9dc1937fed1bf7fa13b8.tar.bz2 |
2001-04-24 Joel Sherrill <joel@OARcorp.com>
* src/imfs/memfile.c (memfile_open): Did not set iop->size
and thus the value was incorrect. Before this field was cleared,
this resulted in the value from the last time that IOP was used
being still in place. Discovered by Andrew Bythell
<abythell@nortelnetworks.com>.
-rw-r--r-- | c/src/exec/libfs/ChangeLog | 8 | ||||
-rw-r--r-- | c/src/exec/libfs/src/imfs/memfile.c | 1 | ||||
-rw-r--r-- | c/src/libfs/ChangeLog | 8 | ||||
-rw-r--r-- | c/src/libfs/src/imfs/memfile.c | 1 | ||||
-rw-r--r-- | cpukit/libfs/ChangeLog | 8 | ||||
-rw-r--r-- | cpukit/libfs/src/imfs/memfile.c | 1 |
6 files changed, 27 insertions, 0 deletions
diff --git a/c/src/exec/libfs/ChangeLog b/c/src/exec/libfs/ChangeLog index ef8ce14bb2..2599a40146 100644 --- a/c/src/exec/libfs/ChangeLog +++ b/c/src/exec/libfs/ChangeLog @@ -1,3 +1,11 @@ +2001-04-24 Joel Sherrill <joel@OARcorp.com> + + * src/imfs/memfile.c (memfile_open): Did not set iop->size + and thus the value was incorrect. Before this field was cleared, + this resulted in the value from the last time that IOP was used + being still in place. Discovered by Andrew Bythell + <abythell@nortelnetworks.com>. + 2001-04-20 Joel Sherrill <joel@OARcorp.com> * src/imfs/imfs_debug.c (IMFS_print_jnode): Modified to print diff --git a/c/src/exec/libfs/src/imfs/memfile.c b/c/src/exec/libfs/src/imfs/memfile.c index fc2680fcfe..5927b155aa 100644 --- a/c/src/exec/libfs/src/imfs/memfile.c +++ b/c/src/exec/libfs/src/imfs/memfile.c @@ -98,6 +98,7 @@ int memfile_open( if (iop->flags & LIBIO_FLAGS_APPEND) iop->offset = the_jnode->info.file.size; + iop->size = the_jnode->info.file.size; return 0; } diff --git a/c/src/libfs/ChangeLog b/c/src/libfs/ChangeLog index ef8ce14bb2..2599a40146 100644 --- a/c/src/libfs/ChangeLog +++ b/c/src/libfs/ChangeLog @@ -1,3 +1,11 @@ +2001-04-24 Joel Sherrill <joel@OARcorp.com> + + * src/imfs/memfile.c (memfile_open): Did not set iop->size + and thus the value was incorrect. Before this field was cleared, + this resulted in the value from the last time that IOP was used + being still in place. Discovered by Andrew Bythell + <abythell@nortelnetworks.com>. + 2001-04-20 Joel Sherrill <joel@OARcorp.com> * src/imfs/imfs_debug.c (IMFS_print_jnode): Modified to print diff --git a/c/src/libfs/src/imfs/memfile.c b/c/src/libfs/src/imfs/memfile.c index fc2680fcfe..5927b155aa 100644 --- a/c/src/libfs/src/imfs/memfile.c +++ b/c/src/libfs/src/imfs/memfile.c @@ -98,6 +98,7 @@ int memfile_open( if (iop->flags & LIBIO_FLAGS_APPEND) iop->offset = the_jnode->info.file.size; + iop->size = the_jnode->info.file.size; return 0; } diff --git a/cpukit/libfs/ChangeLog b/cpukit/libfs/ChangeLog index ef8ce14bb2..2599a40146 100644 --- a/cpukit/libfs/ChangeLog +++ b/cpukit/libfs/ChangeLog @@ -1,3 +1,11 @@ +2001-04-24 Joel Sherrill <joel@OARcorp.com> + + * src/imfs/memfile.c (memfile_open): Did not set iop->size + and thus the value was incorrect. Before this field was cleared, + this resulted in the value from the last time that IOP was used + being still in place. Discovered by Andrew Bythell + <abythell@nortelnetworks.com>. + 2001-04-20 Joel Sherrill <joel@OARcorp.com> * src/imfs/imfs_debug.c (IMFS_print_jnode): Modified to print diff --git a/cpukit/libfs/src/imfs/memfile.c b/cpukit/libfs/src/imfs/memfile.c index fc2680fcfe..5927b155aa 100644 --- a/cpukit/libfs/src/imfs/memfile.c +++ b/cpukit/libfs/src/imfs/memfile.c @@ -98,6 +98,7 @@ int memfile_open( if (iop->flags & LIBIO_FLAGS_APPEND) iop->offset = the_jnode->info.file.size; + iop->size = the_jnode->info.file.size; return 0; } |