diff options
author | des <des@FreeBSD.org> | 1998-04-18 19:24:22 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 1998-04-18 19:24:22 +0000 |
commit | 231798aaaf9ad0bafd56df46d2f88928848206ef (patch) | |
tree | 736dbd07ef06183cd5f135cc3066dc695a09dfb1 /lib/libc/sys/lseek.2 | |
parent | 97401dfce3e8ee49ea5bf2e2c15648157deda2d9 (diff) | |
download | FreeBSD-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/lseek.2')
-rw-r--r-- | lib/libc/sys/lseek.2 | 4 |
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 , |