summaryrefslogtreecommitdiffstats
path: root/sys/nfs/nfs_lock.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-08-23 18:02:29 +0000
committerache <ache@FreeBSD.org>2001-08-23 18:02:29 +0000
commit6e290545e10033972d1b507051ff8c36224baa45 (patch)
tree68242962519492e8aa8117a3c880381289039e8a /sys/nfs/nfs_lock.c
parente84a42cf98ec1a503ce10bb3ca319e3e1aa5f514 (diff)
downloadFreeBSD-src-6e290545e10033972d1b507051ff8c36224baa45.zip
FreeBSD-src-6e290545e10033972d1b507051ff8c36224baa45.tar.gz
Stupid error from my side in prev. commit: || -> &&
Diffstat (limited to 'sys/nfs/nfs_lock.c')
-rw-r--r--sys/nfs/nfs_lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfs/nfs_lock.c b/sys/nfs/nfs_lock.c
index 607662c..e2fa91c 100644
--- a/sys/nfs/nfs_lock.c
+++ b/sys/nfs/nfs_lock.c
@@ -103,7 +103,7 @@ nfs_dolock(ap)
* on ranges, so we do it.
*/
if (fl->l_whence != SEEK_END) {
- if (fl->l_whence != SEEK_CUR || fl->l_whence != SEEK_SET ||
+ if ((fl->l_whence != SEEK_CUR && fl->l_whence != SEEK_SET) ||
fl->l_start < 0 ||
(fl->l_len < 0 &&
(fl->l_start == 0 || fl->l_start + fl->l_len < 0)))
OpenPOWER on IntegriCloud