aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/fusermount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/fusermount.c b/util/fusermount.c
index 1f6e90d..4a3c264 100644
--- a/util/fusermount.c
+++ b/util/fusermount.c
@@ -794,7 +794,8 @@ static int try_open(const char *dev, char **devp, int silent)
close(fd);
fd = -1;
}
- } else if (errno == ENODEV)
+ } else if (errno == ENODEV ||
+ errno == ENOENT) /* check for ENOENT too, for the udev case */
return -2;
else if (!silent) {
fprintf(stderr, "%s: failed to open %s: %s\n", progname, dev,