diff options
-rw-r--r-- | c/src/exec/libcsupport/src/open.c | 1 | ||||
-rw-r--r-- | c/src/lib/libc/open.c | 1 | ||||
-rw-r--r-- | cpukit/libcsupport/src/open.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/c/src/exec/libcsupport/src/open.c b/c/src/exec/libcsupport/src/open.c index 32fd4076e6..7efa18e829 100644 --- a/c/src/exec/libcsupport/src/open.c +++ b/c/src/exec/libcsupport/src/open.c @@ -143,6 +143,7 @@ int open( * returned by successful path evaluation. */ + iop->offset = 0; iop->handlers = temp_loc.handlers; iop->file_info = temp_loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); diff --git a/c/src/lib/libc/open.c b/c/src/lib/libc/open.c index 32fd4076e6..7efa18e829 100644 --- a/c/src/lib/libc/open.c +++ b/c/src/lib/libc/open.c @@ -143,6 +143,7 @@ int open( * returned by successful path evaluation. */ + iop->offset = 0; iop->handlers = temp_loc.handlers; iop->file_info = temp_loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); diff --git a/cpukit/libcsupport/src/open.c b/cpukit/libcsupport/src/open.c index 32fd4076e6..7efa18e829 100644 --- a/cpukit/libcsupport/src/open.c +++ b/cpukit/libcsupport/src/open.c @@ -143,6 +143,7 @@ int open( * returned by successful path evaluation. */ + iop->offset = 0; iop->handlers = temp_loc.handlers; iop->file_info = temp_loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); |