X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Floginctl.c;h=1be47c8dde9b8a3340c251a947ebbf49d5a3a2f6;hb=de97b26ac5e29063632312ec1a20eb6318ca924c;hp=ba8020df23972563bc0b6973bd50ec7798062c32;hpb=f8440af5febb18ddfd2bc7a94b771284f0b7b310;p=elogind.git diff --git a/src/loginctl.c b/src/loginctl.c index ba8020df2..1be47c8dd 100644 --- a/src/loginctl.c +++ b/src/loginctl.c @@ -393,7 +393,7 @@ static void print_session_status_info(SessionStatusInfo *i) { printf("\t Leader: %u", (unsigned) i->leader); - get_process_name(i->leader, &t); + get_process_comm(i->leader, &t); if (t) { printf(" (%s)", t); free(t); @@ -1063,10 +1063,9 @@ static int show(DBusConnection *bus, char **args, unsigned n) { uid_t uid; uint32_t u; - r = get_user_creds((const char**) (args+i), &uid, NULL, NULL); - if (r < 0) { + ret = get_user_creds((const char**) (args+i), &uid, NULL, NULL); + if (ret < 0) { log_error("User %s unknown.", args[i]); - r = -ENOENT; goto finish; }