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:
authormslifcak <slifcan@gmail.com>2017-05-23 15:56:25 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2017-05-23 15:56:25 +0300
commitaf60a2463a3ba8fa34ffb7a34da3eab3e0a7a81a (patch)
tree4f778b2b86f8c3ba78a75f4ea378f149fa8bcf0a /include/tests_crypto
parentc3a7c5ed5bce9b80fba44c5ddca26420f39ae824 (diff)
250 fixes (#393)
* restore use of lshw * add ROOTDIR to restore lost PHP file ref * refactor certificate search to benefit older "find" command
Diffstat (limited to 'include/tests_crypto')
-rw-r--r--include/tests_crypto2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_crypto b/include/tests_crypto
index cbbda9d7..7ae300f1 100644
--- a/include/tests_crypto
+++ b/include/tests_crypto
@@ -44,7 +44,7 @@
if [ ${CANREAD} -eq 1 ]; then
LogText "Result: found directory ${DIR}"
# Search for CRT files
- sFINDCRTS=$(${FINDBINARY} ${DIR} -name "*.crt" -or -name "*.pem" -or -name "cert*" -and -type f -print 2> /dev/null)
+ sFINDCRTS=$(${FINDBINARY} ${DIR} -type f 2> /dev/null | ${EGREPBINARY} ".crt$|.pem$|^cert")
if [ ! -z "${sFINDCRTS}" ]; then
for FILE in ${sFINDCRTS}; do
FileIsReadable ${FILE}