chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
update TODO
[elogind.git]
/
src
/
install.c
diff --git
a/src/install.c
b/src/install.c
index 1fb1f9d5800e7fc3ccad1b6c222be0058bfdbd18..92561168059422f40ca15af0784056ec5b9177a4 100644
(file)
--- a/
src/install.c
+++ b/
src/install.c
@@
-1571,10
+1571,10
@@
UnitFileState unit_file_get_state(
}
if (lstat(path, &st) < 0) {
+ r = -errno;
if (errno == ENOENT)
continue;
- r = -errno;
goto finish;
}
@@
-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;