From fb5ef067c493c5c59b72296d9c520be1dc54b79e Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Mon, 2 Apr 2012 09:08:35 -0400 Subject: 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 --- src/install.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-54-g00ecf