diff options
Diffstat (limited to '')
-rw-r--r-- | cpukit/libcsupport/src/fcntl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/fcntl.c b/cpukit/libcsupport/src/fcntl.c index 3a65a74574..9b89711fcc 100644 --- a/cpukit/libcsupport/src/fcntl.c +++ b/cpukit/libcsupport/src/fcntl.c @@ -126,6 +126,8 @@ int fcntl( break; default: + errno = EINVAL; + ret = -1; break; } if ((ret >= 0) && iop->handlers->fcntl) { |