chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
path-util: do not fail in path_is_mountpoint() if path doesn't exist
[elogind.git]
/
src
/
shared
/
path-util.c
diff --git
a/src/shared/path-util.c
b/src/shared/path-util.c
index 39f77f64540eec6595f46b9d86a2d8a5b2f46f3a..97a200504ba80f61e9e745b5aab6390bf4996070 100644
(file)
--- a/
src/shared/path-util.c
+++ b/
src/shared/path-util.c
@@
-387,8
+387,12
@@
fallback:
else
r = lstat(t, &a);
- if (r < 0)
+ if (r < 0) {
+ if (errno == ENOENT)
+ return 0;
+
return -errno;
+ }
r = path_get_parent(t, &parent);
if (r < 0)