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:
182b858
)
path-util: do not fail in path_is_mountpoint() if path doesn't exist
author
Mantas Mikulėnas
<grawity@gmail.com>
Sun, 9 Sep 2012 12:16:18 +0000
(15:16 +0300)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 10 Sep 2012 07:21:10 +0000
(09:21 +0200)
This was accidentally lost in commit
1640a0b6b05b
.
src/shared/path-util.c
patch
|
blob
|
history
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)