Skip to content

Commit 6bf2cf1

Browse files
authored
use absolute path for ldconfig
1 parent f22147e commit 6bf2cf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iptc/xtables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ class xtables_target(ct.Union):
808808
ldconfig_path_regex = re.compile('^(/.*):$')
809809
import subprocess
810810
ldconfig = subprocess.Popen(
811-
('ldconfig', '-N', '-v'),
811+
('/sbin/ldconfig', '-N', '-v'),
812812
stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True
813813
)
814814
ldconfig_out, ldconfig_err = ldconfig.communicate()

0 commit comments

Comments
 (0)