summaryrefslogtreecommitdiff
path: root/src/shared/path-util.c
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-04-26 15:57:29 +0200
committerAnthony G. Basile <blueness@gentoo.org>2015-05-04 14:11:18 -0400
commit1fdf69d5ef4e76633bf325aa8c709b8904ff6a7a (patch)
treec6ff34ca12025d1b71500f6cb7d62a13ccd7b3ad /src/shared/path-util.c
parentf23824164480857fd39581e80dc75a1f852e38a6 (diff)
path-util: fix fstat fallback in fd_is_mount_point
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared/path-util.c')
-rw-r--r--src/shared/path-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/path-util.c b/src/shared/path-util.c
index 83135c075f..665b171263 100644
--- a/src/shared/path-util.c
+++ b/src/shared/path-util.c
@@ -372,7 +372,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 = false;
+ bool nosupp = false, check_st_dev = true;
struct stat a, b;
int r;