Task #52550 - fixed.err

back to task #52550
download
Error: SHELLCHECK_WARNING (CWE-477):
/usr/lib/rpm/redhat/find-requires:12:27: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#   10|   filelist=`sed "s/[]['\"*?{}]/\\\\\&/g"`
#   11|   
#   12|-> [ -x /usr/lib/rpm/rpmdeps -a -n "$filelist" ] && \
#   13|       echo $filelist | tr '[:blank:]' \\n | /usr/lib/rpm/rpmdeps --requires
#   14|   

Error: SHELLCHECK_WARNING (CWE-156):
/usr/lib/rpm/redhat/find-requires:25:10: warning[SC2046]: Quote this to prevent word splitting.
#   23|   
#   24|   for f in $filelist; do
#   25|->     if [ $(echo "$f" | sed -r -ne 's:^.*/lib/modules/(.*)/(.*).ko$:\2:p') ]
#   26|       then
#   27|           is_kmod=1;

Error: SHELLCHECK_WARNING (CWE-563):
/usr/lib/rpm/redhat/find-requires:27:9: warning[SC2034]: is_kmod appears unused. Verify use (or export if used externally).
#   25|       if [ $(echo "$f" | sed -r -ne 's:^.*/lib/modules/(.*)/(.*).ko$:\2:p') ]
#   26|       then
#   27|->         is_kmod=1;
#   28|       elif [ $(echo "$f" | sed -r -ne 's:^.*/boot/(.*):\1:p') ]
#   29|       then

Error: SHELLCHECK_WARNING (CWE-156):
/usr/lib/rpm/redhat/find-requires:28:12: warning[SC2046]: Quote this to prevent word splitting.
#   26|       then
#   27|           is_kmod=1;
#   28|->     elif [ $(echo "$f" | sed -r -ne 's:^.*/boot/(.*):\1:p') ]
#   29|       then
#   30|   	unset is_kmod;