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:
authorIain Cuthbertson <iain.cuthbertson@siftware.com>2020-06-02 17:33:32 +0300
committerIain Cuthbertson <iain.cuthbertson@siftware.com>2020-06-02 17:33:32 +0300
commit0b8c775a011ba7acf7a090ac54df165dd1b85062 (patch)
tree09c1003aafd6f1e3b1ff1ff2174d8138418a5a3b /include/tests_networking
parent9fdfc062dd17820114c2721f211f2c0f36bf5494 (diff)
Adds uppercase option to the hostname validation regex
Diffstat (limited to 'include/tests_networking')
-rw-r--r--include/tests_networking2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_networking b/include/tests_networking
index 83a7aae0..420f26ea 100644
--- a/include/tests_networking
+++ b/include/tests_networking
@@ -70,7 +70,7 @@
LogText "Result: hostnamed is defined and not longer than 63 characters"
fi
# Test valid characters (normally a dot should not be in the name, but we can't be 100% sure we have short name)
- FIND=$(echo "${HOSTNAME}" | ${TRBINARY} -d '[a-z0-9\.\-]')
+ FIND=$(echo "${HOSTNAME}" | ${TRBINARY} -d '[a-zA-Z0-9\.\-]')
if [ -z "${FIND}" ]; then
LogText "Result: good, no unexpected characters discovered in hostname"
if IsVerbose; then Display --indent 2 --text "- Hostname (allowed characters)" --result "${STATUS_OK}" --color GREEN; fi