[systemd-commits] src/shared

Thomas H.P. Andersen phomes at kemper.freedesktop.org
Sun Apr 26 07:02:33 PDT 2015


 src/shared/path-util.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8431778882da7dc7b611f9c7ee81cc97fdb4c85c
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date:   Sun Apr 26 15:57:29 2015 +0200

    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 925bb28..635ce33 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;
 



More information about the systemd-commits mailing list