mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-27 07:44:14 +02:00
Security: don't allow uninitialized variables (set as a strict default now)
This commit is contained in:
parent
dde57ce870
commit
81c8f1f2a6
14
lynis
14
lynis
@ -22,6 +22,9 @@
|
|||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
#
|
#
|
||||||
|
# Code quality: don't allow using undefined variables
|
||||||
|
set -o nounset
|
||||||
|
|
||||||
# In Solaris /bin/sh is not POSIX, but /usr/xpg4/bin/sh is.
|
# In Solaris /bin/sh is not POSIX, but /usr/xpg4/bin/sh is.
|
||||||
# Switch to /usr/xpg4/bin/sh if it exists and we are not already running it.
|
# Switch to /usr/xpg4/bin/sh if it exists and we are not already running it.
|
||||||
test "$_" != "/usr/xpg4/bin/sh" && test -f /usr/xpg4/bin/sh && exec /usr/xpg4/bin/sh "$0" "$@"
|
test "$_" != "/usr/xpg4/bin/sh" && test -f /usr/xpg4/bin/sh && exec /usr/xpg4/bin/sh "$0" "$@"
|
||||||
@ -35,10 +38,10 @@
|
|||||||
PROGRAM_AUTHOR_CONTACT="lynis-dev@cisofy.com"
|
PROGRAM_AUTHOR_CONTACT="lynis-dev@cisofy.com"
|
||||||
|
|
||||||
# Version details
|
# Version details
|
||||||
PROGRAM_RELEASE_DATE="2019-06-24"
|
PROGRAM_RELEASE_DATE="2019-06-29"
|
||||||
PROGRAM_RELEASE_TIMESTAMP=1561383761
|
PROGRAM_RELEASE_TIMESTAMP=1561383761
|
||||||
PROGRAM_RELEASE_TYPE="final" # dev or final
|
PROGRAM_RELEASE_TYPE="dev" # dev or final
|
||||||
PROGRAM_VERSION="2.7.5"
|
PROGRAM_VERSION="3.0.0"
|
||||||
|
|
||||||
# Source, documentation and license
|
# Source, documentation and license
|
||||||
PROGRAM_SOURCE="https://github.com/CISOfy/lynis"
|
PROGRAM_SOURCE="https://github.com/CISOfy/lynis"
|
||||||
@ -55,11 +58,6 @@
|
|||||||
|
|
||||||
DISPLAY_LANG="${LANG}" # required by function Display to deal with multi-bytes characters.
|
DISPLAY_LANG="${LANG}" # required by function Display to deal with multi-bytes characters.
|
||||||
|
|
||||||
# Code quality:
|
|
||||||
# Set strict checking for development version for first part of code. After
|
|
||||||
# initialization this is checked with strict profile option.
|
|
||||||
if [ ${PROGRAM_RELEASE_TYPE} = "dev" ]; then set -u; fi
|
|
||||||
|
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user