[Pkg-rust-maintainers] Bug#1085333: rust-dbus: calls dbus_get_local_machine_id() which has bad error-handling

Simon McVittie smcv at debian.org
Fri Oct 18 14:25:53 BST 2024


Source: rust-dbus
Version: 0.9.7-1
Severity: normal
Tags: upstream

rust-dbus calls dbus_get_local_machine_id(), which has no good mechanism
for reporting an error, and therefore will spam warnings to standard error
(and possibly crash) if the D-Bus machine ID has not been set up correctly.
This function should be considered deprecated.

Please prefer to use dbus_try_get_local_machine_id(), which takes
a DBusError parameter and therefore can be used to report errors in
whatever way is considered to be most appropriate by the caller. This
has been available in upstream stable releases since dbus 1.12.0 (2017).

Thanks,
    smcv



More information about the Pkg-rust-maintainers mailing list