chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
564def2
)
Prep v239: Only _HANDLE_ACTION_INVALID makes method_can_shutdown_or_sleep() answer...
author
Sven Eden
<yamakuzure@gmx.net>
Thu, 30 Aug 2018 06:35:32 +0000
(08:35 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Thu, 30 Aug 2018 06:35:32 +0000
(08:35 +0200)
src/login/logind-dbus.c
patch
|
blob
|
history
diff --git
a/src/login/logind-dbus.c
b/src/login/logind-dbus.c
index 5178dd8477f1476f5f0151e8b3568d905df1540c..e75fb023b2de7fb456d14a4cb07e3e75185c2eb9 100644
(file)
--- a/
src/login/logind-dbus.c
+++ b/
src/login/logind-dbus.c
@@
-2385,7
+2385,7
@@
static int method_can_shutdown_or_sleep(
}
}
#else
- if (
(handle <= HANDLE_IGNORE) || (handle >= _HANDLE_ACTION_MAX)
) {
+ if (
_HANDLE_ACTION_INVALID == handle
) {
result = "no";
goto finish;
}