pystemd icon indicating copy to clipboard operation
pystemd copied to clipboard

fix DBusRemote using the wrong attribute

Open lilydjwg opened this issue 1 year ago • 1 comments

fixes this:

>>> bus = pystemd.dbuslib.DBusRemote(b'myhost')
>>> bus.open()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pystemd/dbuslib.pyx", line 303, in pystemd.dbuslib.DBus.open
    rets = self.open_dbus_bus()
  File "pystemd/dbuslib.pyx", line 577, in pystemd.dbuslib.DBusRemote.open_dbus_bus
    return dbusc.sd_bus_open_system_remote(&(self.bus), self.remote)
AttributeError: 'pystemd.dbuslib.DBusRemote' object has no attribute 'remote'

lilydjwg avatar Oct 18 '23 13:10 lilydjwg

Also fix use-after-free which shows up at the python interactive shell.

The CI failures are some fedora distributions failing to find and install cython.

lilydjwg avatar Oct 18 '23 14:10 lilydjwg