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 );