Blame SOURCES/0012-libmount-umount-make-mnt_stat_mountpoin-usable-for-r.patch

fe1ca8
From 0afd0613fc738659fb0ff490e4e069366dee4a94 Mon Sep 17 00:00:00 2001
fe1ca8
From: Karel Zak <kzak@redhat.com>
fe1ca8
Date: Mon, 10 Dec 2018 16:25:08 +0100
fe1ca8
Subject: [PATCH 12/14] libmount: (umount) make mnt_stat_mountpoin() usable for
fe1ca8
 relative paths
fe1ca8
fe1ca8
 # mount -o loop devicefile /mnt/test
fe1ca8
 # umount devicefile
fe1ca8
 umount: devicefile: not mounted.
fe1ca8
fe1ca8
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1653781
fe1ca8
Upstream: http://github.com/karelzak/util-linux/commit/2859592ecb7b48d47d2e34d589ea35f76e329416
fe1ca8
Signed-off-by: Karel Zak <kzak@redhat.com>
fe1ca8
---
fe1ca8
 libmount/src/utils.c | 2 +-
fe1ca8
 1 file changed, 1 insertion(+), 1 deletion(-)
fe1ca8
fe1ca8
diff --git a/libmount/src/utils.c b/libmount/src/utils.c
fe1ca8
index fd98d0529..c36187c07 100644
fe1ca8
--- a/libmount/src/utils.c
fe1ca8
+++ b/libmount/src/utils.c
fe1ca8
@@ -121,7 +121,7 @@ static int fstype_cmp(const void *v1, const void *v2)
fe1ca8
 int mnt_stat_mountpoint(const char *target, struct stat *st)
fe1ca8
 {
fe1ca8
 #ifdef AT_NO_AUTOMOUNT
fe1ca8
-	return fstatat(-1, target, st, AT_NO_AUTOMOUNT);
fe1ca8
+	return fstatat(AT_FDCWD, target, st, AT_NO_AUTOMOUNT);
fe1ca8
 #else
fe1ca8
 	return stat(target, st);
fe1ca8
 #endif
fe1ca8
-- 
fe1ca8
2.17.2
fe1ca8