summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>1998-04-18 19:24:22 +0000
committerdes <des@FreeBSD.org>1998-04-18 19:24:22 +0000
commit231798aaaf9ad0bafd56df46d2f88928848206ef (patch)
tree736dbd07ef06183cd5f135cc3066dc695a09dfb1 /lib/libc/sys
parent97401dfce3e8ee49ea5bf2e2c15648157deda2d9 (diff)
downloadFreeBSD-src-231798aaaf9ad0bafd56df46d2f88928848206ef.zip
FreeBSD-src-231798aaaf9ad0bafd56df46d2f88928848206ef.tar.gz
Return EINVAL and do not changefile pointer if resulting offset is negative.
PR: kern/6184
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/lseek.24
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/sys/lseek.2 b/lib/libc/sys/lseek.2
index 39a37fa..83fbb14 100644
--- a/lib/libc/sys/lseek.2
+++ b/lib/libc/sys/lseek.2
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)lseek.2 8.3 (Berkeley) 4/19/94
-.\" $Id$
+.\" $Id: lseek.2,v 1.6 1997/02/22 15:04:01 peter Exp $
.\"
.Dd April 19, 1994
.Dt LSEEK 2
@@ -120,7 +120,7 @@ is not an open file descriptor.
is associated with a pipe, socket, or FIFO.
.It Bq Er EINVAL
.Fa Whence
-is not a proper value.
+is not a proper value, or the resulting offset is negative.
.El
.Sh SEE ALSO
.Xr dup 2 ,
OpenPOWER on IntegriCloud