Stupid error from my side in prev. commit: || -> &&

This commit is contained in:
Andrey A. Chernov 2001-08-23 18:02:29 +00:00
parent e2870579fa
commit f6bf1abc1b
2 changed files with 2 additions and 2 deletions

View File

@ -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)))

View File

@ -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)))