]> git.neil.brown.name Git - history.git/commit
[PATCH] fcntl fix
authorAndries E. Brouwer <andries.brouwer@cwi.nl>
Fri, 22 Nov 2002 03:01:35 +0000 (19:01 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Fri, 22 Nov 2002 03:01:35 +0000 (19:01 -0800)
commit619a67aa3567ada73e733f13445440748ed288e6
treedecf2b45fa1a1291329167fa0ed3ee1407ac893d
parent3eebeb8eb3e036dd2d1aec825a8f2c515f0ff188
[PATCH] fcntl fix

Today we return EINVAL for fcntl with a lock with negative length.
POSIX-2001 says that the lock covers start .. start+len-1 if len >= 0
and start+len .. start-1 if len < 0.
fs/locks.c