Stupid error from my side in prev. commit: || -> &&
This commit is contained in:
parent
e2870579fa
commit
f6bf1abc1b
@ -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)))
|
||||
|
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user