summaryrefslogtreecommitdiff
path: root/x11-wm/xpra/files/xpra-4.2.2-true-false-bin-path.patch
blob: 255e80738616a90b3a6bc9cfb27e4a5afa38c4be (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 6e9ef70facfcc280e4c98892d2af6636d122c762 Mon Sep 17 00:00:00 2001
From: James Le Cuirot <chewi@gentoo.org>
Date: Tue, 24 Aug 2021 09:56:26 +0100
Subject: [PATCH] Execute true and false from /bin, not /usr/bin

Some distributions now have /bin symlinked to /usr/bin, but not all of
them. /bin should work everywhere.
---
 tests/unittests/unit/server/auth_test.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/unittests/unit/server/auth_test.py b/tests/unittests/unit/server/auth_test.py
index 373db96e5..8e6be8e20 100755
--- a/tests/unittests/unit/server/auth_test.py
+++ b/tests/unittests/unit/server/auth_test.py
@@ -73,7 +73,7 @@ class TestAuth(unittest.TestCase):
             kwargs["connection"] = "fake-connection-data"
         #exec auth would fail during rpmbuild without a default command:
         if "command" not in kwargs:
-            kwargs["command"] = "/usr/bin/true"
+            kwargs["command"] = "/bin/true"
         return c(username, **kwargs)
 
     def _test_module(self, module):
@@ -380,8 +380,8 @@ class TestAuth(unittest.TestCase):
             a = self._init_auth("exec", **kwargs)
             assert not a.requires_challenge(), "%s should not require a challenge" % a
             assert self.capsauth(a)==success, "%s should have %s using cmd=%s" % (a, ["failed", "succeeded"][success], cmd)
-        exec_cmd("/usr/bin/true", True)
-        exec_cmd("/usr/bin/false", False)
+        exec_cmd("/bin/true", True)
+        exec_cmd("/bin/false", False)
 
 
 def main():
-- 
2.32.0