From: Thomas Hindoe Paaboel Andersen Date: Sun, 26 Apr 2015 13:57:29 +0000 (+0200) Subject: path-util: fix fstat fallback in fd_is_mount_point X-Git-Tag: v226.4~1^2~421 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=d13c4b0f724ceae4237d4bdd2d912ed5c92ba93f path-util: fix fstat fallback in fd_is_mount_point --- 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;