diff options
Diffstat (limited to 'lib/libstand/fstat.c')
-rw-r--r-- | lib/libstand/fstat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libstand/fstat.c b/lib/libstand/fstat.c index 3a5f39f..7d95360 100644 --- a/lib/libstand/fstat.c +++ b/lib/libstand/fstat.c @@ -59,5 +59,7 @@ fstat(fd, sb) } errno = (f->f_ops->fo_stat)(f, sb); + if (errno) + return (-1); return (0); } |