setup-2.15.0-23.fc43

List of Findings

Error: SHELLCHECK_WARNING (CWE-398): [#def1]
/etc/profile.d/lang.sh:1:1: error[SC1008]: This shebang was unrecognized. ShellCheck only supports sh/bash/dash/ksh/'busybox sh'. Add a 'shell' directive to specify.
#    1|-> # /etc/profile.d/lang.sh - exports environment variables, and provides fallback
#    2|   #                          for CJK languages that can't be displayed in console.
#    3|   #                          Resets the locale if unavailable.

Error: SHELLCHECK_WARNING (CWE-398): [#def2]
/etc/profile.d/lang.sh:1:1: error[SC2096]: On most OS, shebangs can only specify a single parameter.
#    1|-> # /etc/profile.d/lang.sh - exports environment variables, and provides fallback
#    2|   #                          for CJK languages that can't be displayed in console.
#    3|   #                          Resets the locale if unavailable.

Error: SHELLCHECK_WARNING (CWE-398): [#def3]
/etc/profile.d/lang.sh:1:2: error[SC1113]: Use #!, not just #, for the shebang.
#    1|-> # /etc/profile.d/lang.sh - exports environment variables, and provides fallback
#    2|   #                          for CJK languages that can't be displayed in console.
#    3|   #                          Resets the locale if unavailable.

Error: SHELLCHECK_WARNING (CWE-563): [#def4]
/etc/profile.d/lang.sh:19:5: warning[SC2034]: LC_PAPER appears unused. Verify use (or export if used externally).
#   17|       LC_MONETARY="C.UTF-8"
#   18|       LC_MESSAGES="C.UTF-8"
#   19|->     LC_PAPER="C.UTF-8"
#   20|       LC_NAME="C.UTF-8"
#   21|       LC_ADDRESS="C.UTF-8"

Error: SHELLCHECK_WARNING (CWE-563): [#def5]
/etc/profile.d/lang.sh:20:5: warning[SC2034]: LC_NAME appears unused. Verify use (or export if used externally).
#   18|       LC_MESSAGES="C.UTF-8"
#   19|       LC_PAPER="C.UTF-8"
#   20|->     LC_NAME="C.UTF-8"
#   21|       LC_ADDRESS="C.UTF-8"
#   22|       LC_TELEPHONE="C.UTF-8"

Error: SHELLCHECK_WARNING (CWE-563): [#def6]
/etc/profile.d/lang.sh:21:5: warning[SC2034]: LC_ADDRESS appears unused. Verify use (or export if used externally).
#   19|       LC_PAPER="C.UTF-8"
#   20|       LC_NAME="C.UTF-8"
#   21|->     LC_ADDRESS="C.UTF-8"
#   22|       LC_TELEPHONE="C.UTF-8"
#   23|       LC_MEASUREMENT="C.UTF-8"

Error: SHELLCHECK_WARNING (CWE-563): [#def7]
/etc/profile.d/lang.sh:22:5: warning[SC2034]: LC_TELEPHONE appears unused. Verify use (or export if used externally).
#   20|       LC_NAME="C.UTF-8"
#   21|       LC_ADDRESS="C.UTF-8"
#   22|->     LC_TELEPHONE="C.UTF-8"
#   23|       LC_MEASUREMENT="C.UTF-8"
#   24|       LC_IDENTIFICATION="C.UTF-8"

Error: SHELLCHECK_WARNING (CWE-563): [#def8]
/etc/profile.d/lang.sh:23:5: warning[SC2034]: LC_MEASUREMENT appears unused. Verify use (or export if used externally).
#   21|       LC_ADDRESS="C.UTF-8"
#   22|       LC_TELEPHONE="C.UTF-8"
#   23|->     LC_MEASUREMENT="C.UTF-8"
#   24|       LC_IDENTIFICATION="C.UTF-8"
#   25|   else

Error: SHELLCHECK_WARNING (CWE-563): [#def9]
/etc/profile.d/lang.sh:24:5: warning[SC2034]: LC_IDENTIFICATION appears unused. Verify use (or export if used externally).
#   22|       LC_TELEPHONE="C.UTF-8"
#   23|       LC_MEASUREMENT="C.UTF-8"
#   24|->     LC_IDENTIFICATION="C.UTF-8"
#   25|   else
#   26|       LANG_backup="${LANG}"

Error: SHELLCHECK_WARNING (CWE-156): [#def10]
/etc/profile.d/lang.sh:33:18: warning[SC2046]: Quote this to prevent word splitting.
#   31|           # NOTE: We are using eval & sed here to avoid invoking of any commands & functions from those files.
#   32|           if [ -x /usr/bin/sed ]; then
#   33|->             eval $(/usr/bin/sed -r -e 's/^[[:blank:]]*([[:upper:]_]+)=([[:print:][:digit:]\._-]+|"[[:print:][:digit:]\._-]+")/export \1=\2/;t;d' ${config})
#   34|           else
#   35|               #but if we don't have sed, let's go old way and source it

Error: SHELLCHECK_WARNING (CWE-477): [#def11]
/etc/profile.d/lang.sh:53:35: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#   51|   # See 'man 7 locale' for more info about LC_ALL.
#   52|   if [ -n "${LC_ALL}" ]; then
#   53|->     if [ "${LC_ALL}" != "${LANG}" -a -n "${LANG}" ]; then
#   54|           export LC_ALL
#   55|       else

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-7.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namesetup-2.15.0-23.fc43
store-results-to/tmp/tmpmx8n9t3x/setup-2.15.0-23.fc43.tar.xz
time-created2025-04-25 15:36:26
time-finished2025-04-25 15:37:28
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpmx8n9t3x/setup-2.15.0-23.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpmx8n9t3x/setup-2.15.0-23.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9