chiark / gitweb /
enable startup job again
[elogind.git] / main.c
diff --git a/main.c b/main.c
index e139c4b191da8b60985dabf06c1ba03141cee6f3..052d5029cc9ed5b3ce7334935792a43699eb34b7 100644 (file)
--- a/main.c
+++ b/main.c
@@ -14,7 +14,7 @@ int main(int argc, char *argv[]) {
         Job *job = NULL;
         int r, retval = 1;
 
-        assert_se(chdir("test1") == 0);
+        assert_se(set_unit_path("test1") >= 0);
 
         if (!(m = manager_new()) < 0) {
                 log_error("Failed to allocate manager object: %s", strerror(ENOMEM));