mirror of https://github.com/CISOfy/lynis.git
Use improved function with return values
This commit is contained in:
parent
037f2e9a89
commit
5ecbaafa4f
|
@ -53,12 +53,8 @@
|
|||
if [ ! "${ASBINARY}" = "" ]; then
|
||||
logtext "Test: Check file permissions for as (Assembler)"
|
||||
IsWorldExecutable ${ASBINARY}
|
||||
if [ ${SYMLINK} -eq 0 ]; then
|
||||
if [ $? -eq 1 ]; then
|
||||
logtext "Binary: ${ASBINARY} (world executable: ${FileIsWorldExecutable})"
|
||||
else
|
||||
logtext "Binary: ${ASBINARY} (symlinked to: ${sFILE}) (world executable: ${FileIsWorldExecutable})"
|
||||
fi
|
||||
if [ ${FileIsWorldExecutable} = "TRUE" ]; then
|
||||
AddHP 2 3
|
||||
HARDEN_COMPILERS_NEEDED=1
|
||||
else
|
||||
|
@ -69,12 +65,8 @@
|
|||
if [ ! "${GCCBINARY}" = "" ]; then
|
||||
logtext "Test: Check file permissions for GCC compiler"
|
||||
IsWorldExecutable ${GCCBINARY}
|
||||
if [ ${SYMLINK} -eq 0 ]; then
|
||||
if [ $? -eq 1 ]; then
|
||||
logtext "Binary: ${GCCBINARY} (world executable: ${FileIsWorldExecutable})"
|
||||
else
|
||||
logtext "Binary: ${GCCBINARY} (symlinked to: ${sFILE}) (world executable: ${FileIsWorldExecutable})"
|
||||
fi
|
||||
if [ ${FileIsWorldExecutable} = "TRUE" ]; then
|
||||
AddHP 2 3
|
||||
HARDEN_COMPILERS_NEEDED=1
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue