From 1c0f62e37b0e775df7cb6121bc6ae64d1d885d3b Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sun, 8 Apr 2012 17:03:17 +0200 Subject: [PATCH] udev: fix test-udev binary --- Makefile.am | 3 ++- TODO | 2 ++ src/udev/test-udev.c | 6 +++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index 8d3ec4c8..f22806e5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1347,7 +1347,8 @@ test_udev_CFLAGS = \ $(udev_common_CFLAGS) test_udev_LDADD = \ - $(udev_common_LDADD) + $(udev_common_LDADD) \ + libsystemd-basic.la test_udev_CPPFLAGS = \ $(udev_common_CPPFLAGS) diff --git a/TODO b/TODO index 0b80d65c..d794cbb9 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,6 @@ Bugfixes: +* fix Fedora's cups.rpm to use tmpfiles instead of /lib/udev/devices/ + * do not link selinux and attr against all binaries * swap units that are activated by one name but shown in the kernel under another are semi-broken diff --git a/src/udev/test-udev.c b/src/udev/test-udev.c index 8cf07cc5..53ecd95b 100644 --- a/src/udev/test-udev.c +++ b/src/udev/test-udev.c @@ -48,7 +48,7 @@ int main(int argc, char *argv[]) udev = udev_new(); if (udev == NULL) - exit(1); + exit(EXIT_FAILURE); log_debug("version %s\n", VERSION); udev_selinux_init(udev); @@ -116,6 +116,6 @@ out: udev_selinux_exit(udev); udev_unref(udev); if (err != 0) - return 1; - return 0; + return EXIT_FAILURE; + return EXIT_SUCCESS; } -- 2.39.5