In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/connection_list.cgi line 6:
. /usr/html/axis-cgi/lib/functions.sh
^-- SC1091 (info): Not following: /usr/html/axis-cgi/lib/functions.sh was not specified as input (see shellcheck -x).
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/connection_list.cgi line 11:
[ $CGI_HDGEN != yes ] || __cgi_errhd 500 "$*"
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$CGI_HDGEN" != yes ] || __cgi_errhd 500 "$*"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/connection_list.cgi line 22:
local _addr=$1 _port
^------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
local _addr="$1" _port
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/connection_list.cgi line 32:
eval $2=\$_addr && eval $3=\$_port
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
eval "$2"=\$_addr && eval "$3"=\$_port
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/connection_list.cgi line 38:
local prot recq sendq localaddr remaddr status pid_prog pid process
^-- SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/connection_list.cgi line 39:
local service_name ign pname nname portptot serv_f=/etc/services
^-- SC3043 (warning): In POSIX sh, 'local' is undefined.
^------^ SC2034 (warning): portptot appears unused. Verify use (or export if used externally).
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/connection_list.cgi line 40:
local stat_f print_header=1 progset=0
^-- SC3043 (warning): In POSIX sh, 'local' is undefined.
^-----^ SC2034 (warning): progset appears unused. Verify use (or export if used externally).
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/connection_list.cgi line 42:
local format='%-39s %-9s %-22s %-40s\n'
^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/connection_list.cgi line 46:
while read prot recq sendq localaddr remaddr status pid_prog; do
^--^ SC2162 (info): read without -r will mangle backslashes.
^--^ SC2034 (warning): recq appears unused. Verify use (or export if used externally).
^---^ SC2034 (warning): sendq appears unused. Verify use (or export if used externally).
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/connection_list.cgi line 53:
[ "$status" ] && [ $status = ESTABLISHED ] || continue
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$status" ] && [ "$status" = ESTABLISHED ] || continue
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/connection_list.cgi line 57:
parse_port_addr $localaddr localaddr localport ||
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
parse_port_addr "$localaddr" localaddr localport ||
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/connection_list.cgi line 59:
parse_port_addr $remaddr remaddr ign ||
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
parse_port_addr "$remaddr" remaddr ign ||
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/connection_list.cgi line 69:
if [ $pid -le 0 ]; then
^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ "$pid" -le 0 ]; then
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/connection_list.cgi line 77:
while read ign pname ign; do
^--^ SC2162 (info): read without -r will mangle backslashes.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/connection_list.cgi line 80:
done 2>/dev/null <$stat_f || :
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
done 2>/dev/null <"$stat_f" || :
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/connection_list.cgi line 84:
while read nname portprot ign; do
^--^ SC2162 (info): read without -r will mangle backslashes.
^-^ SC2034 (warning): ign appears unused. Verify use (or export if used externally).
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/connection_list.cgi line 87:
local prot_temp=$prot
^-------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
local prot_temp="$prot"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/connection_list.cgi line 88:
[ $prot_temp != tcp6 ] || prot_temp=tcp
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$prot_temp" != tcp6 ] || prot_temp=tcp
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/connection_list.cgi line 91:
$localport/$prot_temp)
^--------^ SC2154 (warning): localport is referenced but not assigned.
^-------------------^ SC2254 (warning): Quote expansions in case patterns to match literally rather than as a glob.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/connection_list.cgi line 101:
printf "$format" IP PROTOCOL "SERVICE(PORT)" "PID/PROCESS"
^-------^ SC2059 (info): Don't use variables in the printf format string. Use printf '..%s..' "$foo".
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/connection_list.cgi line 106:
printf "$format" $remaddr $prot "$service_name($localport)" "$pid/$process"
^-------^ SC2059 (info): Don't use variables in the printf format string. Use printf '..%s..' "$foo".
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
printf "$format" "$remaddr" "$prot" "$service_name($localport)" "$pid/$process"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/connection_list.cgi line 111:
[ $CGI_HDGEN != yes ] || __cgi_errhd 200
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$CGI_HDGEN" != yes ] || __cgi_errhd 200
For more information:
https://www.shellcheck.net/wiki/SC2034 -- ign appears unused. Verify use (o...
https://www.shellcheck.net/wiki/SC2154 -- localport is referenced but not a...
https://www.shellcheck.net/wiki/SC2254 -- Quote expansions in case patterns...