[systemd-commits] src/install.c
Lennart Poettering
lennart at kemper.freedesktop.org
Mon Apr 2 12:47:26 PDT 2012
src/install.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit fb5ef067c493c5c59b72296d9c520be1dc54b79e
Author: Dave Reisner <dreisner at archlinux.org>
Date: Mon Apr 2 09:08:35 2012 -0400
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
diff --git a/src/install.c b/src/install.c
index 174d79b..9256116 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;
More information about the systemd-commits
mailing list