diff --git a/src/login/logind-action.c b/src/login/logind-action.c index 140953eec1..1aeacfaf2b 100644 --- a/src/login/logind-action.c +++ b/src/login/logind-action.c @@ -64,7 +64,9 @@ int manager_handle_action( /* If the key handling is turned off, don't do anything */ if (handle == HANDLE_IGNORE) { - log_debug("Refusing operation, as it is turned off."); + log_debug("Handling of %s (%s) is disabled, taking no action.", + inhibit_key == 0 ? "idle timeout" : inhibit_what_to_string(inhibit_key), + is_edge ? "edge" : "level"); return 0; } diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index 01ffbb6bad..0f83ed99bc 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -3299,6 +3299,7 @@ static int method_inhibit(sd_bus_message *message, void *userdata, sd_bus_error r = inhibitor_start(i); if (r < 0) return r; + TAKE_PTR(i); return sd_bus_reply_method_return(message, "h", fifo_fd); }