blob: 3027ad7f17b70c4de08c9637be6eccd06c3c126d [file] [log] [blame]
From 799591c57368bbe47667f5b696050247a766b117 Mon Sep 17 00:00:00 2001
From: "Anthony G. Basile" <blueness@gentoo.org>
Date: Mon, 6 Jan 2020 11:14:47 -0500
Subject: [PATCH] src/libudev/libudev-monitor.c: do not check if /dev is tmpfs
This check fails for buildroot systems where /dev is not mounted
as a tmpfs filesystem. Dropping this check should be safe even
on regular systems.
This solves issue #172.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Signed-off-by: Joel Stanley <joel@jms.id.au>
---
src/libudev/libudev-monitor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libudev/libudev-monitor.c b/src/libudev/libudev-monitor.c
index 614149c6243c..060ba733f33b 100644
--- a/src/libudev/libudev-monitor.c
+++ b/src/libudev/libudev-monitor.c
@@ -186,7 +186,7 @@ struct udev_monitor *udev_monitor_new_from_netlink_fd(struct udev *udev, const c
* We do not set a netlink multicast group here, so the socket
* will not receive any messages.
*/
- if (access(UDEV_ROOT_RUN "/udev/control", F_OK) < 0 || !udev_has_devtmpfs(udev)) {
+ if (access(UDEV_ROOT_RUN "/udev/control", F_OK) < 0) {
log_debug("the udev service seems not to be active, disable the monitor");
group = UDEV_MONITOR_NONE;
} else
--
2.25.0