efi-rpm-macros-6-5.fc44

List of Findings

Error: SHELLCHECK_WARNING (CWE-477): [#def1]
/usr/lib/rpm/brp-boot-efi-times:4:27: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#    2|   
#    3|   # If using normal root, avoid changing anything.
#    4|-> if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
#    5|   	exit 0
#    6|   fi

Error: SHELLCHECK_WARNING (CWE-571): [#def2]
/usr/lib/rpm/brp-boot-efi-times:13:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
#   11|   update() {
#   12|   	local path="$1"
#   13|-> 	local ctime=$(stat -c "%Z" "${path}")
#   14|   
#   15|   	# we always want to touch it once...

Scan Properties

analyzer-version-clippy1.90.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-226.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-gcc-latest-x86_64
project-nameefi-rpm-macros-6-5.fc44
store-results-to/tmp/tmp8yk8kmid/efi-rpm-macros-6-5.fc44.tar.xz
time-created2025-10-28 17:49:16
time-finished2025-10-28 17:50:25
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmp8yk8kmid/efi-rpm-macros-6-5.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp8yk8kmid/efi-rpm-macros-6-5.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9