Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2019-08-20 15:24:06 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2019-08-20 15:24:06 +0300
commita310c43176e22815722608c8dc3e6cd5a42bc091 (patch)
treeebd84c06791d94bfb04678f5184e5171cdec91d6 /include/profiles
parent1823bf10400843abf280766deb639f1fff4b9808 (diff)
Set hyphen as last character to allow it being matched
Diffstat (limited to 'include/profiles')
-rw-r--r--include/profiles2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/profiles b/include/profiles
index 26b7b9b1..8121cd9a 100644
--- a/include/profiles
+++ b/include/profiles
@@ -59,7 +59,7 @@
fi
# Now parse the profile and filter out unwanted characters
- DATA=$(egrep "^config:|^[a-z-].*=" ${PROFILE} | tr -dc '[:alnum:]/\[\]\(\)\-_\|,\.:;= \n\r' | sed 's/ /!space!/g')
+ DATA=$(egrep "^config:|^[a-z-].*=" ${PROFILE} | tr -dc '[:alnum:]/\[\]\(\)_\|,\.:;= \n\r-' | sed 's/ /!space!/g')
for CONFIGOPTION in ${DATA}; do
if ContainsString "^config:" "${CONFIGOPTION}"; then
# Old style configuration