summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-04-02 09:08:35 -0400
committerLennart Poettering <lennart@poettering.net>2012-04-02 21:47:18 +0200
commitfb5ef067c493c5c59b72296d9c520be1dc54b79e (patch)
tree495682eeed92a74db5f4998239e4b1db510cffc8 /src
parent3cc588803dba3530cd39000d299353a31e4c068b (diff)
install: check for proper return from dirent_ensure_type
Fixes 'systemctl list-unit-files', which previously returned only: Failed to issue method call: No such file or directory
Diffstat (limited to 'src')
-rw-r--r--src/install.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/install.c b/src/install.c
index 174d79bab6..9256116805 100644
--- a/src/install.c
+++ b/src/install.c
@@ -1853,7 +1853,7 @@ int unit_file_get_list(
r = dirent_ensure_type(d, de);
if (r < 0) {
- if (errno == ENOENT)
+ if (r == -ENOENT)
continue;
goto finish;