summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-04-26 15:57:29 +0200
committerSven Eden <yamakuzure@gmx.net>2017-03-14 08:14:16 +0100
commitd13c4b0f724ceae4237d4bdd2d912ed5c92ba93f (patch)
tree2bf757f0cc70753fb76aa43a69ac9f93d50f2514 /src
parent09815905898f9b3c3f8ccf35a0757edb33e160d5 (diff)
path-util: fix fstat fallback in fd_is_mount_point
Diffstat (limited to 'src')
-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 925bb28c3..635ce33b2 100644
--- 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 = false;
+ bool nosupp = false, check_st_dev = true;
struct stat a, b;
int r;