summaryrefslogtreecommitdiff
path: root/sys-fs/fuse/files/fuse-2.9.9-avoid-calling-umount.patch
blob: b5c141d29ed0c2df30ba40383ba9dc81553e5b3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From acb69eca6c25db44523efb4cb1e7088ae66d093d Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Tue, 3 Aug 2021 23:14:12 +0100
Subject: [PATCH] Avoid calling umount

Converting a sed into a patch.

Ebuild had:
	# sandbox violation with mtab writability wrt #438250
	# don't sed configure.in without eautoreconf because of maintainer mode
	sed -i 's:umount --fake:true --fake:' configure || die

Bug: https://bugs.gentoo.org/438250
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 9946a0e..de433cb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -101,11 +101,11 @@ util_linux_ok=yes
 if test "$arch" = linux -a "$cross_compiling" != "yes"; then
 	AC_MSG_CHECKING([if umount supports --fake --no-canonicalize])
 	# exit code of umount is 1 if option is unrecognised, 2 otherwise
-	umount --fake --no-canonicalize > /dev/null 2>&1
+	true --fake --no-canonicalize > /dev/null 2>&1
 	if test $? != 1; then
 		AC_MSG_RESULT([yes])
 	else
-		firstline=`umount --fake --no-canonicalize 2>&1 | head -1`
+		firstline=`true --fake --no-canonicalize 2>&1 | head -1`
 		if test "$firstline" = 'umount: only root can use "--fake" option'; then
 			AC_MSG_RESULT([yes])
 		else
-- 
2.32.0