]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
loginctl: fix typo causing ignoring multiple session IDs (#5732)
authorslodki <slodki@users.noreply.github.com>
Thu, 13 Apr 2017 10:34:59 +0000 (12:34 +0200)
committerMartin Pitt <martinpitt@users.noreply.github.com>
Thu, 13 Apr 2017 10:34:59 +0000 (12:34 +0200)
Fixes #5733

src/login/loginctl.c

index 7dea5c08597ac549ffb32000e0df151427db92d3..68cac4cb08979d21ce21ec27d01181e0cb66407c 100644 (file)
@@ -929,7 +929,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;