summaryrefslogtreecommitdiffstats
path: root/lib/libstand/ufs.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libstand/ufs.c')
-rw-r--r--lib/libstand/ufs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libstand/ufs.c b/lib/libstand/ufs.c
index 8148fe9..6a3d758 100644
--- a/lib/libstand/ufs.c
+++ b/lib/libstand/ufs.c
@@ -818,6 +818,7 @@ ufs_seek(f, offset, where)
fp->f_seekp = DIP(fp, di_size) - offset;
break;
default:
+ errno = EINVAL;
return (-1);
}
return (fp->f_seekp);
OpenPOWER on IntegriCloud