livesys-scripts-0.6.4-1.fc42

List of Findings

Error: SHELLCHECK_WARNING (CWE-477): [#def1]
/usr/libexec/livesys/livesys-main:29:39: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#   27|     . /etc/sysconfig/livesys
#   28|   
#   29|->   if [ "${livesys_session}" = "gnome" -a -d /var/lib/gnome-initial-setup/ ]; then
#   30|         autouser=0
#   31|     fi

Error: SHELLCHECK_WARNING (CWE-477): [#def2]
/usr/libexec/livesys/sessions.d/livesys-gnome:83:57: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#   81|   
#   82|   # set up auto-login if it's a non-persistent boot
#   83|-> if [ "${cmdline##* rd.live.overlay[= ]}" != "$cmdline"  -o ! -d /var/lib/gnome-initial-setup ]; then
#   84|     cat > /etc/gdm/custom.conf <<- "  FOE"
#   85|   	[daemon]

Error: SHELLCHECK_WARNING (CWE-829): [#def3]
/usr/libexec/livesys/sessions.d/livesys-kde:9:4: warning[SC2091]: Remove surrounding $() to avoid executing output (or use eval if intentional).
#    7|   
#    8|   # set up autologin for user liveuser
#    9|-> if $(rpm -q plasma-mobile > /dev/null 2>&1) ; then
#   10|     DEFAULT_DESKTOP="plasma-mobile.desktop"
#   11|     IS_MOBILE=1

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-102.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelivesys-scripts-0.6.4-1.fc42
store-results-to/tmp/tmpilh69a7o/livesys-scripts-0.6.4-1.fc42.tar.xz
time-created2024-11-13 01:54:16
time-finished2024-11-13 01:55:21
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpilh69a7o/livesys-scripts-0.6.4-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpilh69a7o/livesys-scripts-0.6.4-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9