summaryrefslogtreecommitdiff
path: root/x11-wm/xpra/files/xpra-4.2.2-ldconfig.patch
blob: 2cd009994c4b334d5d5ab44a57311476daaaaa9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From f97daef82521c9297f6cc2d7925fe5c6ed526ad1 Mon Sep 17 00:00:00 2001
From: totaam <antoine@xpra.org>
Date: Sun, 22 Aug 2021 21:31:52 +0700
Subject: [PATCH] #3239 with shell=True, best not to use a list

---
 xpra/os_util.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xpra/os_util.py b/xpra/os_util.py
index 2f8c0d64a..2f309f888 100644
--- a/xpra/os_util.py
+++ b/xpra/os_util.py
@@ -786,7 +786,7 @@ def find_lib_ldconfig(libname):
             ldconfig = t
             break
     import subprocess
-    p = subprocess.Popen([ldconfig, "-p"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
+    p = subprocess.Popen("%s -p" % ldconfig, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
     data = bytestostr(p.communicate()[0])
 
     libpath = re.search(pattern, data, re.MULTILINE)        #@UndefinedVariable