projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f25afeb
)
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
Lennart Poettering
<lennart@poettering.net>
Mon, 6 Apr 2015 08:57:53 +0000
(10:57 +0200)
src/shared/path-util.c
patch
|
blob
|
history
diff --git
a/src/shared/path-util.c
b/src/shared/path-util.c
index
6a984fc
..
e485c8e
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;
- } 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: