From: Kay Sievers Date: Thu, 13 Nov 2008 00:52:33 +0000 (+0100) Subject: set errno = ENOSYS in inotify stub X-Git-Tag: 174~1327 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=95d61c274566700ea2d39a4a048e2fa6ea2cc58f set errno = ENOSYS in inotify stub --- diff --git a/udev/udev-sysdeps.h b/udev/udev-sysdeps.h index eaeab86f6..08d7e4854 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 15a197e56..08a87b033 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");