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:
authorKepi <kepi@igloonet.cz>2020-07-02 23:22:34 +0300
committerKepi <kepi@igloonet.cz>2020-07-07 16:38:19 +0300
commita2e752a8db56032e38cc8c7b96830ceea90bf844 (patch)
tree2d98f1e2125ce66e300d8d2f6d16b32aaa64757c /include/functions
parentde18ddc2c01b2d53a21d48c8497a7a08a7386bf0 (diff)
[functions] ParseNginx: Ignore empty included wildcards
Its ok to have empty directories included. We should not output errors with lsbinary unable to find anything there.
Diffstat (limited to 'include/functions')
-rw-r--r--include/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions b/include/functions
index 39ae7c92..36113531 100644
--- a/include/functions
+++ b/include/functions
@@ -2306,7 +2306,7 @@
# "include sites-enabled/*.conf"
elif [ $(echo ${VALUE} | grep -F -c "*.conf") -gt 0 ]; then
if [ "$(echo ${VALUE} | ${CUTBINARY} -c1)" != "/" ]; then VALUE=${CONFIG_FILE%nginx.conf}; fi
- for FOUND_CONF in $(ls ${VALUE%;*}); do
+ for FOUND_CONF in $(ls ${VALUE%;*} 2> /dev/null); do
FOUND=0
for CONF in ${NGINX_CONF_FILES}; do
if [ "${CONF}" = "${FOUND_CONF}" ]; then FOUND=1; LogText "Found this file already in our configuration files array, not adding to queue"; fi