mirror of
https://git.freebsd.org/ports.git
synced 2025-07-08 04:49:17 -04:00
- Convert post-patch to real patches because they are easier to maintain. - Fix a NULL dereference in the scanner backend when D-Bus isn't running. - Depend on sysutils/py-distro to make hp-toolbox (Device Manager) work again. - Upstream switched to Avahi for mDNS support. Rename the SNMP option to NETWORK because it's not just SNMP now. - Don't install some programs related to uninstalling and upgrading of HPLIP and the installation of firmware plugins because they circumvent the package system. - Install icons in share/icons so desktops can choose an appropriate resolution. Portions taken from a patch by Oleg Sidorkin <osidorkin@gmail.com>. PR: 255586, 257034, 257512
14 lines
451 B
C
14 lines
451 B
C
--- scan/sane/io.c.orig 2022-02-23 07:41:05 UTC
|
|
+++ scan/sane/io.c
|
|
@@ -92,9 +92,10 @@ int __attribute__ ((visibility ("hidden"))) SendScanEv
|
|
DBUS_TYPE_STRING, &title,
|
|
DBUS_TYPE_INVALID);
|
|
|
|
- if (!dbus_connection_send(dbus_conn, msg, NULL))
|
|
+ if (NULL == dbus_conn || !dbus_connection_send(dbus_conn, msg, NULL))
|
|
{
|
|
BUG("dbus message send failed!\n");
|
|
+ dbus_message_unref(msg);
|
|
return 0;
|
|
}
|
|
|