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 (parent:
34da583
)
path-util: if parent can do name_to_handle() but relevant dir not, it's a mount point
author
Lennart Poettering
<lennart@poettering.net>
Sat, 4 Apr 2015 17:20:56 +0000
(19:20 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Tue, 14 Mar 2017 06:49:53 +0000
(07:49 +0100)
src/shared/path-util.c
patch
|
blob
|
history
diff --git
a/src/shared/path-util.c
b/src/shared/path-util.c
index 6a984fc1d822db741d00ddf34b6dc49d559ff604..e485c8e71e46c7a47795842010900f50d5cf54f3 100644
(file)
--- a/
src/shared/path-util.c
+++ b/
src/shared/path-util.c
@@
-515,7
+515,12
@@
int fd_is_mount_point(int fd) {
return 1;
} else
return -errno;
return 1;
} else
return -errno;
- } else
+ } else if (nosupp)
+ /* The parent can do name_to_handle_at() but the
+ * directory we are interested in can't? If so, it
+ * must be a mount point. */
+ return 1;
+ else
return mount_id != mount_id_parent;
fallback:
return mount_id != mount_id_parent;
fallback: