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:
e530cad
)
loginctl: fix typo causing ignoring multiple session IDs (#5732)
author
slodki
<slodki@users.noreply.github.com>
Thu, 13 Apr 2017 10:34:59 +0000
(12:34 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Tue, 25 Jul 2017 07:46:51 +0000
(09:46 +0200)
Fixes #5733
src/login/loginctl.c
patch
|
blob
|
history
diff --git
a/src/login/loginctl.c
b/src/login/loginctl.c
index 7da27605aeb1e57482845320212548431ef5f2d9..ff132b3866e477e6ddfbcfd7a1efb7625362b6c3 100644
(file)
--- a/
src/login/loginctl.c
+++ b/
src/login/loginctl.c
@@
-950,7
+950,7
@@
static int show_session(int argc, char *argv[], void *userdata) {
_cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
_cleanup_free_ char *path = NULL;
- r = get_session_path(bus, argv[
1
], &error, &path);
+ r = get_session_path(bus, argv[
i
], &error, &path);
if (r < 0) {
log_error("Failed to get session path: %s", bus_error_message(&error, r));
return r;