summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libcsupport/src/lseek.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/libcsupport/src/lseek.c')
-rw-r--r--c/src/exec/libcsupport/src/lseek.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/c/src/exec/libcsupport/src/lseek.c b/c/src/exec/libcsupport/src/lseek.c
index cd8046356f..3e586bbc31 100644
--- a/c/src/exec/libcsupport/src/lseek.c
+++ b/c/src/exec/libcsupport/src/lseek.c
@@ -26,6 +26,7 @@ off_t lseek(
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
+ rtems_libio_check_is_open(iop);
/*
* If this file descriptor is mapped to an external set of handlers,