chiark / gitweb /
util: return exit status in wait_for_terminate_and_warn()
[elogind.git] / src / quotacheck.c
index 5ced933..da2da3b 100644 (file)
@@ -94,7 +94,7 @@ int main(int argc, char *argv[]) {
                 if (arg_skip)
                         return 0;
 
-                if (access("/dev/.systemd/quotacheck", F_OK) < 0)
+                if (access("/dev/.run/systemd/quotacheck", F_OK) < 0)
                         return 0;
         }
 
@@ -107,7 +107,7 @@ int main(int argc, char *argv[]) {
                 _exit(1); /* Operational error */
         }
 
-        r = wait_for_terminate_and_warn("quotacheck", pid) >= 0 ? EXIT_SUCCESS : EXIT_FAILURE;
+        r = wait_for_terminate_and_warn("quotacheck", pid) == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
 
 finish:
         return r;