chiark / gitweb /
systemctl: return r instead of always returning 0
[elogind.git] / src / systemctl / systemctl.c
index ad9d12548e53ef847a91bf91b1f01ff48d8b039a..631cd3df53b9b98e775ffe5777e5511e47e156bb 100644 (file)
@@ -1365,7 +1365,7 @@ static int list_jobs(DBusConnection *bus, char **args) {
         }
         free(jobs);
 
-        return 0;
+        return r;
 }
 
 static int cancel_job(DBusConnection *bus, char **args) {