0001-src-libudev-libudev-monitor.c-do-not-check-if-dev-is.patch 1.4 KB

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