From 8a8b127d29e38200f244a8b5ad0c7c7769c40402 Mon Sep 17 00:00:00 2001 From: Richard Weinberger Date: Tue, 22 Feb 2022 15:59:46 -0500 Subject: mount.nfs: Fix Typo auto negotiating code. Commit 14258541 add a check that had a '||' instead of a '&&' which is the typo. The intention of commit 14258541 was to show EBUSY errors but this error is not shown when the mount point does exists (commit afda50fc). In the end, EBUSY are now interrupted correctly in this corner case. Signed-off-by: Steve Dickson Signed-off-by: Steve Dickson --- utils/mount/stropts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c index 573df6e..dbdd11e 100644 --- a/utils/mount/stropts.c +++ b/utils/mount/stropts.c @@ -973,7 +973,7 @@ fall_back: if ((result = nfs_try_mount_v3v2(mi, FALSE))) return result; - if (errno != EBUSY || errno != EACCES) + if (errno != EBUSY && errno != EACCES) errno = olderrno; return result; -- cgit v1.2.1