chiark / gitweb /
split selinux label operations out of cgroup-util, socket-util
[elogind.git] / src / install.c
index 174d79bab6bc3eb72de371fe968465fb5968927c..45018043c27a4cbf09b4d640aad2a12703e24a1a 100644 (file)
@@ -26,6 +26,7 @@
 #include <fnmatch.h>
 
 #include "util.h"
+#include "mkdir.h"
 #include "hashmap.h"
 #include "set.h"
 #include "path-lookup.h"
@@ -1853,7 +1854,7 @@ int unit_file_get_list(
 
                         r = dirent_ensure_type(d, de);
                         if (r < 0) {
-                                if (errno == ENOENT)
+                                if (r == -ENOENT)
                                         continue;
 
                                 goto finish;