Skip to content

Commit 8e68d16

Browse files
authored
Changed regex used to ind xtables libs
Updated the regular expression for ldconfig versions packaged in glibc2.28 and greater Closes #329
1 parent 542efdb commit 8e68d16

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
@@ -805,7 +805,7 @@ class xtables_target(ct.Union):
805805
_xtables_libdir = os.getenv("XTABLES_LIBDIR")
806806
if _xtables_libdir is None:
807807
import re
808-
ldconfig_path_regex = re.compile('^(/.*):$')
808+
ldconfig_path_regex = re.compile('^(/.*):($| \(.*\)$)')
809809
import subprocess
810810
ldconfig = subprocess.Popen(
811811
('/sbin/ldconfig', '-N', '-v'),

0 commit comments

Comments
 (0)