From 95d61c274566700ea2d39a4a048e2fa6ea2cc58f Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 13 Nov 2008 01:52:33 +0100 Subject: [PATCH] set errno = ENOSYS in inotify stub --- udev/udev-sysdeps.h | 1 + udev/udevd.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/udev/udev-sysdeps.h b/udev/udev-sysdeps.h index eaeab86f..08d7e485 100644 --- a/udev/udev-sysdeps.h +++ b/udev/udev-sysdeps.h @@ -33,6 +33,7 @@ #ifndef HAVE_INOTIFY static inline int inotify_init(void) { + errno = ENOSYS; return -1; } diff --git a/udev/udevd.c b/udev/udevd.c index 15a197e5..08a87b03 100644 --- a/udev/udevd.c +++ b/udev/udevd.c @@ -864,7 +864,7 @@ int main(int argc, char *argv[]) IN_CREATE | IN_DELETE | IN_MOVE | IN_CLOSE_WRITE); } } else if (errno == ENOSYS) - err(udev, "the kernel does not support inotify, udevd can't monitor rules file changes\n"); + info(udev, "unable to use inotify, udevd will not monitor rule files changes\n"); else err(udev, "inotify_init failed: %m\n"); -- 2.39.5