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:
Diffstat (limited to 'include/tests_ssh')
-rw-r--r--include/tests_ssh24
1 files changed, 12 insertions, 12 deletions
diff --git a/include/tests_ssh b/include/tests_ssh
index 581f253e..2edaf1f6 100644
--- a/include/tests_ssh
+++ b/include/tests_ssh
@@ -63,18 +63,18 @@
LogText "Test: searching for sshd_config file"
for I in ${SSH_DAEMON_CONFIG_LOCS}; do
if [ -f "${I}/sshd_config" ]; then
- LogText "Result: ${I}/sshd_config exists"
- if [ ${FOUND} -eq 1 ]; then
- ReportException "${TEST_NO}:01"
- LogText "Result: we already had found another sshd_config file. Using this new file then."
- fi
- FileIsReadable ${I}/sshd_config
- if [ ${CANREAD} -eq 1 ]; then
- FOUND=1
- SSH_DAEMON_CONFIG="${I}/sshd_config"
- else
- LogText "Result: can not read ${I}/sshd_config file (no permission)"
- fi
+ LogText "Result: ${I}/sshd_config exists"
+ if [ ${FOUND} -eq 1 ]; then
+ ReportException "${TEST_NO}:01"
+ LogText "Result: we already had found another sshd_config file. Using this new file then."
+ fi
+ FileIsReadable ${I}/sshd_config
+ if [ ${CANREAD} -eq 1 ]; then
+ FOUND=1
+ SSH_DAEMON_CONFIG="${I}/sshd_config"
+ else
+ LogText "Result: can not read ${I}/sshd_config file (no permission)"
+ fi
fi
done
if [ "${SSH_DAEMON_CONFIG}" = "" ]; then