Newly introduced findings

List of Findings

Error: CLIPPY_WARNING: [#def1]
blockdev/src/blockdev.rs:271:38: warning: manually constructing a nul-terminated string
#      |
#  271 |             let null_fd = libc::open(b"/dev/null\0".as_ptr() as *const i8, libc::O_RDWR);
#      |                                      ^^^^^^^^^^^^^^ help: use a `c""` literal: `c"/dev/null"`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_c_str_literals
#      = note: `#[warn(clippy::manual_c_str_literals)]` on by default

Error: CLIPPY_WARNING: [#def2]
blockdev/src/blockdev.rs:341:29: warning: variables can be used directly in the `format!` string
#      |
#  341 | ...                   format!("bootc: cleaned up leaked loopback device {}\n", device_path)
#      |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
#      = note: `#[warn(clippy::uninlined_format_args)]` on by default
#  help: change this to
#      |
#  341 -                             format!("bootc: cleaned up leaked loopback device {}\n", device_path)
#  341 +                             format!("bootc: cleaned up leaked loopback device {device_path}\n")
#      |

Error: CLIPPY_WARNING: [#def3]
blockdev/src/blockdev.rs:349:29: warning: variables can be used directly in the `format!` string
#      |
#  349 | / ...                   format!(
#  350 | | ...                       "bootc: failed to clean up loopback device {}\n",
#  351 | | ...                       device_path
#  352 | | ...                   )
#      | |_______________________^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

Error: CLIPPY_WARNING: [#def4]
blockdev/src/blockdev.rs:360:29: warning: variables can be used directly in the `format!` string
#      |
#  360 | / ...                   format!(
#  361 | | ...                       "bootc: error cleaning up loopback device {}: {}\n",
#  362 | | ...                       device_path, e
#  363 | | ...                   )
#      | |_______________________^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

Scan Properties

analyzer-version-clippy1.88.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.1.1
analyzer-version-gcc-analyzer15.1.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.88.0
diffbase-analyzer-version-cppcheck2.17.1
diffbase-analyzer-version-gcc15.1.1
diffbase-analyzer-version-gcc-analyzer15.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-21.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namebootc-202507092104.g5ed53c30f0-1
diffbase-store-results-to/tmp/tmpl1l051u0/bootc-202507092104.g5ed53c30f0-1.tar.xz
diffbase-time-created2025-07-10 22:49:55
diffbase-time-finished2025-07-10 23:05:56
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,gcc,shellcheck,cppcheck,unicontrol' '-o' '/tmp/tmpl1l051u0/bootc-202507092104.g5ed53c30f0-1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpl1l051u0/bootc-202507092104.g5ed53c30f0-1.src.rpm'
diffbase-tool-versioncsmock-3.8.1.20250626.171830.gc374be3-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-21.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-x86_64
project-namebootc-202507102224.g4483b32b72-1
store-results-to/tmp/tmpowotb5os/bootc-202507102224.g4483b32b72-1.tar.xz
time-created2025-07-10 23:07:07
time-finished2025-07-10 23:22:18
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,gcc,shellcheck,cppcheck,unicontrol' '-o' '/tmp/tmpowotb5os/bootc-202507102224.g4483b32b72-1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpowotb5os/bootc-202507102224.g4483b32b72-1.src.rpm'
tool-versioncsmock-3.8.1.20250626.171830.gc374be3-1.el9