Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.

Commit ca58ddb

Browse files
Update log4j_findings_unix.sh
1 parent a10dab7 commit ca58ddb

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

unix/log4j_findings_unix.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ log4j()
3939
fi;
4040

4141
cd /tmp/log4j_jar 2>/dev/null
42-
42+
oldIFS=$IFS;
4343
jars=$(find ${BASEDIR} -name "*.jar" -type f 2>/dev/null)
44-
44+
IFS='
45+
'
4546
for i in $jars; do
4647
if test=$(jar -tf $i | grep "[l]og4j-core" | grep "pom.xml" 2>/dev/null); then
4748
log4j_exists=1;
@@ -69,7 +70,7 @@ log4j()
6970
rm -rf /tmp/log4j_jar/*
7071
fi
7172
done
72-
73+
IFS=$oldIFS;
7374
if [ $log4j_exists -eq 0 ]; then
7475
echo "No log4j jars found on the system , exiting now.";
7576
fi;

0 commit comments

Comments
 (0)