chiark / gitweb /
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 9f415ed..e6bd578 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;