From: Dave Reisner Date: Mon, 2 Apr 2012 13:08:35 +0000 (-0400) Subject: install: check for proper return from dirent_ensure_type X-Git-Tag: v183~465 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb5ef067c493c5c59b72296d9c520be1dc54b79e;p=systemd 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 174d79ba..92561168 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;