Commit e2ecf1ab by Alexander Popov

Add the / symbol to the sysctl parsing pattern

The GitHub Actions virtual machine has such a sysctl:
  fs.binfmt_misc.llvm-14-runtime/binfmt = enabled

This example shows that sysctl names may contain the / symbol.
parent 8a9014f8
......@@ -201,7 +201,7 @@ def parse_cmdline_file(mode, parsed_options, fname):
def parse_sysctl_file(mode, parsed_options, fname):
with open(fname, 'r', encoding='utf-8') as f:
sysctl_pattern = re.compile("[a-zA-Z0-9\._-]+ =.*$")
sysctl_pattern = re.compile("[a-zA-Z0-9/\._-]+ =.*$")
for line in f.readlines():
line = line.strip()
if not sysctl_pattern.match(line):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment