diff options
author | mboelen <michael@cisofy.com> | 2015-01-16 01:21:17 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2015-01-16 01:21:17 +0300 |
commit | ef531081bcf88477211cb76279a2b55d5cbc1866 (patch) | |
tree | 2acbdab2f3fcbf9ade712fdbad3e3f86293d7426 /include/tests_authentication | |
parent | 44a530719cd9dddf8f9ee814209dffcfe5adb568 (diff) |
Only show suggestion when shell does not exist [AUTH-9218]
Diffstat (limited to 'include/tests_authentication')
-rw-r--r-- | include/tests_authentication | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_authentication b/include/tests_authentication index 3e3f3cb0..3cd2ff91 100644 --- a/include/tests_authentication +++ b/include/tests_authentication @@ -169,12 +169,12 @@ logtext "Result: found no shell on line" else logtext "Result: found possible harmful shell ${J}" - ReportSuggestion ${TEST_NO} "Determine if account is needed, as shell ${J} does not exist" if [ -f ${J} ]; then logtext "Result: shell ${J} does exist" FOUND=1 else logtext "Result: shell ${J} does not exist" + ReportSuggestion ${TEST_NO} "Determine if account is needed, as shell ${J} does not exist" fi fi done |