From eb22ebe0eceb202984cc9dc1937fed1bf7fa13b8 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 24 Apr 2001 23:06:50 +0000 Subject: 2001-04-24 Joel Sherrill * 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 . --- c/src/exec/libfs/src/imfs/memfile.c | 1 + 1 file changed, 1 insertion(+) (limited to 'c/src/exec/libfs/src') 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; } -- cgit v1.2.3