diff options
author | mboelen <michael@cisofy.com> | 2015-03-25 18:47:37 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2015-03-25 18:47:37 +0300 |
commit | 5ecbaafa4faff3d3fb6dcbcd8f72308ee15dc490 (patch) | |
tree | a9a3e4dd5e7e17bd2f85551481fdae7e85cc90b7 /include/tests_hardening | |
parent | 037f2e9a89237e67e5677ab8443c411335c7fa04 (diff) |
Use improved function with return values
Diffstat (limited to 'include/tests_hardening')
-rw-r--r-- | include/tests_hardening | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/include/tests_hardening b/include/tests_hardening index 31308933..055cd4b5 100644 --- a/include/tests_hardening +++ b/include/tests_hardening @@ -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 |