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>2020-06-22 11:25:02 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2020-06-22 11:25:02 +0300
commit75738ceeab380e852739a9b78e0d907f3e611478 (patch)
treeffb9dfd170f127800b56f03464be4b51ab234021
parent6d6781a2ae9e57624ce834915fec6b040c5e4188 (diff)
Fix for language detection, unset LANG as right place
-rw-r--r--CHANGELOG.md1
-rw-r--r--include/consts4
-rwxr-xr-xlynis5
3 files changed, 6 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3baafee1..deaac158 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,7 @@
- BOOT-5122 - Presence check for grub.d added
- KRNL-5830 - Improved version detection for non-symlinked kernel
- Added Kali Linux
+- Fix: language detection
- End-of-life database updated
- Small code enhancements
diff --git a/include/consts b/include/consts
index 7968ef1f..1a75ae68 100644
--- a/include/consts
+++ b/include/consts
@@ -33,10 +33,6 @@ BIN_PATHS="/bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin \
ETC_PATHS="/etc /usr/local/etc"
-# Do not use specific language, fall back to default
-# Some tools with translated strings are very hard to parse
-unset LANG
-
#
#################################################################################
#
diff --git a/lynis b/lynis
index 9b0e5894..76722baa 100755
--- a/lynis
+++ b/lynis
@@ -241,6 +241,11 @@
echo "Could not find languages directory (file: ${DBDIR}/languages/en)"
exit 1
fi
+
+ # Now that we have determined the language, we unset it from shell
+ # Some tools with translated strings are very hard to parse
+ unset LANG
+
#
#################################################################################
#