]> err.no Git - systemd/commitdiff
install: don't choke on dead links
authorLennart Poettering <lennart@poettering.net>
Fri, 22 Jul 2011 22:49:32 +0000 (00:49 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 22 Jul 2011 22:49:32 +0000 (00:49 +0200)
src/install.c

index 9f415edc2e95d53fdf6853452f06ff334b406c45..e6bd5782e1380b431d3c911712f664812a6fe63d 100644 (file)
@@ -1874,7 +1874,7 @@ int unit_file_get_list(
                         }
 
                         r = null_or_empty_path(f->path);
-                        if (r < 0) {
+                        if (r < 0 && r != -ENOENT) {
                                 free(f->path);
                                 free(f);
                                 goto finish;