diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-04-02 09:08:35 -0400 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-04-02 21:47:18 +0200 |
commit | fb5ef067c493c5c59b72296d9c520be1dc54b79e (patch) | |
tree | 495682eeed92a74db5f4998239e4b1db510cffc8 /src/install.c | |
parent | 3cc588803dba3530cd39000d299353a31e4c068b (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/install.c')
-rw-r--r-- | src/install.c | 2 |
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; |