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:
0981590
)
path-util: fix fstat fallback in fd_is_mount_point
author
Thomas Hindoe Paaboel Andersen
<phomes@gmail.com>
Sun, 26 Apr 2015 13:57:29 +0000
(15:57 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Tue, 14 Mar 2017 07:14:16 +0000
(08:14 +0100)
src/shared/path-util.c
patch
|
blob
|
history
diff --git
a/src/shared/path-util.c
b/src/shared/path-util.c
index 925bb28c3234793ba993ddc31ae796c0a3e28f84..635ce33b234a55a54d3ca4f5f10a9d3b08198669 100644
(file)
--- a/
src/shared/path-util.c
+++ b/
src/shared/path-util.c
@@
-512,7
+512,7
@@
static int fd_fdinfo_mnt_id(int fd, const char *filename, int flags, int *mnt_id
int fd_is_mount_point(int fd) {
union file_handle_union h = FILE_HANDLE_INIT, h_parent = FILE_HANDLE_INIT;
int mount_id = -1, mount_id_parent = -1;
- bool nosupp = false, check_st_dev =
fals
e;
+ bool nosupp = false, check_st_dev =
tru
e;
struct stat a, b;
int r;