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:
8ac7549
)
path-util: fall back to stat() if kernel does not support name_to_handle_at()
author
Mantas Mikulėnas
<grawity@gmail.com>
Sun, 9 Sep 2012 12:16:19 +0000
(15:16 +0300)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 10 Sep 2012 07:21:24 +0000
(09:21 +0200)
Fixes instant hang on kernels that do not have CONFIG_FHANDLE enabled.
src/shared/path-util.c
patch
|
blob
|
history
diff --git
a/src/shared/path-util.c
b/src/shared/path-util.c
index 97a200504ba80f61e9e745b5aab6390bf4996070..b51a68d6d2ff7c47d1949cdbc3f2497f064dc9f1 100644
(file)
--- a/
src/shared/path-util.c
+++ b/
src/shared/path-util.c
@@
-349,8
+349,8
@@
int path_is_mount_point(const char *t, bool allow_symlink) {
r = name_to_handle_at(AT_FDCWD, t, h, &mount_id, allow_symlink ? AT_SYMLINK_FOLLOW : 0);
if (r < 0) {
- if (errno == ENOTSUP)
- /* This file system does not support
+ if (errno == ENO
SYS || errno == ENO
TSUP)
+ /* This
kernel or
file system does not support
* name_to_handle_at(), hence fallback to the
* traditional stat() logic */
goto fallback;