]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/install: fix error codes returned by install_context_apply()
authorFranck Bui <fbui@suse.com>
Tue, 24 Sep 2019 16:33:54 +0000 (18:33 +0200)
committerFranck Bui <fbui@suse.com>
Tue, 24 Sep 2019 17:05:05 +0000 (19:05 +0200)
src/shared/install.c

index 8f9cf4a2f4ec367f0dfdff8687c82c52824cbb7c..0724dd96ee72eb43f4bd225abe874c71887db405 100644 (file)
@@ -1897,7 +1897,7 @@ static int install_context_apply(
 
                 q = install_info_traverse(scope, c, paths, i, flags, NULL);
                 if (q < 0) {
-                        unit_file_changes_add(changes, n_changes, r, i->name, NULL);
+                        unit_file_changes_add(changes, n_changes, q, i->name, NULL);
                         return q;
                 }