mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
systemd: Fix a systemd crash when doing "systemctl list-unit-files"
This commit is contained in:
parent
ccd44e84c8
commit
094c1fd108
@ -17,6 +17,7 @@ stdenv.mkDerivation rec {
|
||||
[ ./reexec.patch
|
||||
./ignore-duplicates.patch
|
||||
./crypt-devices-are-ready.patch
|
||||
./listunitfiles-abort.patch
|
||||
];
|
||||
|
||||
buildInputs =
|
||||
|
20
pkgs/os-specific/linux/systemd/listunitfiles-abort.patch
Normal file
20
pkgs/os-specific/linux/systemd/listunitfiles-abort.patch
Normal file
@ -0,0 +1,20 @@
|
||||
diff --git a/src/core/dbus-manager.c b/src/core/dbus-manager.c
|
||||
index ed9784b..6d045cc 100644
|
||||
--- a/src/core/dbus-manager.c
|
||||
+++ b/src/core/dbus-manager.c
|
||||
@@ -491,7 +491,6 @@ static DBusMessage *message_from_file_changes(
|
||||
return reply;
|
||||
|
||||
oom:
|
||||
- dbus_message_unref(reply);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -1432,7 +1431,6 @@ static DBusHandlerResult bus_manager_message_handler(DBusConnection *connection,
|
||||
r = unit_file_get_list(m->running_as == SYSTEMD_SYSTEM ? UNIT_FILE_SYSTEM : UNIT_FILE_USER, NULL, h);
|
||||
if (r < 0) {
|
||||
unit_file_list_free(h);
|
||||
- dbus_message_unref(reply);
|
||||
return bus_send_error_reply(connection, message, NULL, r);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user