]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udevadm: normalize exit status
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 23 Oct 2018 13:49:16 +0000 (22:49 +0900)
committerLennart Poettering <lennart@poettering.net>
Tue, 23 Oct 2018 17:31:37 +0000 (19:31 +0200)
After d354690e7d0429338cdd1c2cfe1fdd08fc53da9e, each udevadm command
returns negative errno on error. So, let's normalize the exit status
of udevadm.

src/udev/udevadm.c

index 64092c55006f0d019bc94558f601c805413f7740..e627c50ff953cb8380be6ed2b51619a09358669c 100644 (file)
@@ -124,7 +124,5 @@ finish:
         mac_selinux_finish();
         log_close();
 
-        /* TODO: fix this later.
-         * Currently, verbs return positive values on failure. */
-        return r < 0 ? EXIT_FAILURE : r;
+        return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
 }