diff options
Diffstat (limited to 'c')
-rw-r--r-- | c/src/exec/libcsupport/src/open.c | 1 | ||||
-rw-r--r-- | c/src/lib/libc/open.c | 1 |
2 files changed, 2 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 ); |