aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar rusty-snake <41237666+rusty-snake@users.noreply.github.com>2020-12-01 18:48:30 +0100
committerLibravatar rusty-snake <41237666+rusty-snake@users.noreply.github.com>2020-12-01 18:48:30 +0100
commit05debfdca60cfc5337c599ef5f0c8ec95f187b07 (patch)
treec3299741ce21142645742ecfea0f7fe7602e2b64
parenta more portable implementation for time measurements (diff)
downloadfirejail-05debfdca60cfc5337c599ef5f0c8ec95f187b07.tar.gz
firejail-05debfdca60cfc5337c599ef5f0c8ec95f187b07.tar.zst
firejail-05debfdca60cfc5337c599ef5f0c8ec95f187b07.zip
fix #3782 -- Man pages have #ifdefs in them
-rw-r--r--src/man/firejail.txt2
-rwxr-xr-xsrc/man/preproc.awk4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/man/firejail.txt b/src/man/firejail.txt
index 8c73962fb..562b3eda3 100644
--- a/src/man/firejail.txt
+++ b/src/man/firejail.txt
@@ -1558,7 +1558,7 @@ Parent pid 8553, child pid 8554
1558Child process initialized 1558Child process initialized
1559.br 1559.br
1560[...] 1560[...]
1561#if HAVE_USERNS 1561#ifdef HAVE_USERNS
1562.TP 1562.TP
1563\fB\-\-noroot 1563\fB\-\-noroot
1564Install a user namespace with a single user - the current user. 1564Install a user namespace with a single user - the current user.
diff --git a/src/man/preproc.awk b/src/man/preproc.awk
index 20081b551..1471be3ec 100755
--- a/src/man/preproc.awk
+++ b/src/man/preproc.awk
@@ -23,7 +23,7 @@
23BEGIN { 23BEGIN {
24 macros[0] = 0 24 macros[0] = 0
25 for (arg in ARGV) { 25 for (arg in ARGV) {
26 if (ARGV[arg] ~ /^-D[A-Z_]+$/) { 26 if (ARGV[arg] ~ /^-D[A-Z0-9_]+$/) {
27 macros[length(macros) + 1] = substr(ARGV[arg], 3) 27 macros[length(macros) + 1] = substr(ARGV[arg], 3)
28 } 28 }
29 ARGV[arg] = "" 29 ARGV[arg] = ""
@@ -31,7 +31,7 @@ BEGIN {
31 31
32 include = 1 32 include = 1
33} 33}
34/^#ifdef [A-Z_]+$/ { 34/^#ifdef [A-Z0-9_]+$/ {
35 macro = substr($0, 8) 35 macro = substr($0, 8)
36 for (i in macros) { 36 for (i in macros) {
37 if (macros[i] == macro) { 37 if (macros[i] == macro) {