chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3cc5888
)
install: check for proper return from dirent_ensure_type
author
Dave Reisner
<dreisner@archlinux.org>
Mon, 2 Apr 2012 13:08:35 +0000
(09:08 -0400)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 2 Apr 2012 19:47:18 +0000
(21:47 +0200)
Fixes 'systemctl list-unit-files', which previously returned only:
Failed to issue method call: No such file or directory
src/install.c
patch
|
blob
|
history
diff --git
a/src/install.c
b/src/install.c
index 174d79bab6bc3eb72de371fe968465fb5968927c..92561168059422f40ca15af0784056ec5b9177a4 100644
(file)
--- 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;