From 84ac4db90f6f6974eea566c2d8f5bb9a19fcfbf1 Mon Sep 17 00:00:00 2001 From: jeremydenoun Date: Wed, 17 Feb 2021 12:00:13 +0100 Subject: [PATCH] fix incorrect path from ls (#45) Co-authored-by: Jeremy Denoun --- bin/hardening/1.6.4_restrict_core_dumps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/hardening/1.6.4_restrict_core_dumps.sh b/bin/hardening/1.6.4_restrict_core_dumps.sh index 3845952..4890d98 100755 --- a/bin/hardening/1.6.4_restrict_core_dumps.sh +++ b/bin/hardening/1.6.4_restrict_core_dumps.sh @@ -29,7 +29,7 @@ audit() { LIMIT_FILES="" if $SUDO_CMD [ -d "$LIMIT_DIR" ]; then for file in $($SUDO_CMD ls "$LIMIT_DIR"/*.conf 2>/dev/null); do - LIMIT_FILES="$LIMIT_FILES $LIMIT_DIR/$file" + LIMIT_FILES="$LIMIT_FILES $file" done fi debug "Files to search $LIMIT_FILE $LIMIT_FILES"