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