aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-08-12 01:48:34 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-08-14 18:16:10 -0300
commit204c45adee77e9cebfdb9458f68d31f11cbdc679 (patch)
treef2826a2fca7b3d89d7f625c34f284b444303e9e1 /contrib
parentbuild: print syntax list generation (diff)
downloadfirejail-204c45adee77e9cebfdb9458f68d31f11cbdc679.tar.gz
firejail-204c45adee77e9cebfdb9458f68d31f11cbdc679.tar.zst
firejail-204c45adee77e9cebfdb9458f68d31f11cbdc679.zip
build: improve char escaping of syntax lists
Escape `.` only when generating the syntax files rather than directly in the syntax lists, so that the latter contain the command names as is. This also makes the escaping apply to the arg1 syntax list as well. Note: Double escaping (`\\\\.`) is used in `regex_fromlf` because its output is used in another sed replacement (where it needs to be `\\.`). Relates to #5627.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/syntax/lists/profile_commands_arg0.list2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/syntax/lists/profile_commands_arg0.list b/contrib/syntax/lists/profile_commands_arg0.list
index fd1bdb401..e7fecef4b 100644
--- a/contrib/syntax/lists/profile_commands_arg0.list
+++ b/contrib/syntax/lists/profile_commands_arg0.list
@@ -41,7 +41,7 @@ private-tmp
41quiet 41quiet
42restrict-namespaces 42restrict-namespaces
43seccomp 43seccomp
44seccomp\.block-secondary 44seccomp.block-secondary
45tab 45tab
46tracelog 46tracelog
47writable-etc 47writable-etc