diff options
-rw-r--r-- | src/libudev/libudev-monitor.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libudev/libudev-monitor.c b/src/libudev/libudev-monitor.c index 4319ee01c2..4476c1d17e 100644 --- a/src/libudev/libudev-monitor.c +++ b/src/libudev/libudev-monitor.c @@ -119,8 +119,11 @@ static bool udev_has_devtmpfs(struct udev *udev) { int r; r = name_to_handle_at(AT_FDCWD, "/dev", &h.handle, &mount_id, 0); - if (r < 0) + if (r < 0) { + if (errno != EOPNOTSUPP) + udev_err(udev, "name_to_handle_at on /dev: %m\n"); return false; + } f = fopen("/proc/self/mountinfo", "re"); if (!f) |