commit:     799591c57368bbe47667f5b696050247a766b117
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  6 16:14:47 2020 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Mon Jan  6 16:14:47 2020 +0000
URL:        https://gitweb.gentoo.org/proj/eudev.git/commit/?id=799591c5

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 <AT> gentoo.org>

 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 614149c62..060ba733f 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

Reply via email to