X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Floginctl.c;h=1be47c8dde9b8a3340c251a947ebbf49d5a3a2f6;hb=de97b26ac5e29063632312ec1a20eb6318ca924c;hp=811c3f1a90ae89a5f508ebfcc98f476523a0f293;hpb=de3756ab9916551f3f4f1f360aee59aeed238b5b;p=elogind.git diff --git a/src/loginctl.c b/src/loginctl.c index 811c3f1a9..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); @@ -1064,7 +1064,7 @@ static int show(DBusConnection *bus, char **args, unsigned n) { uint32_t u; ret = get_user_creds((const char**) (args+i), &uid, NULL, NULL); - if (r < 0) { + if (ret < 0) { log_error("User %s unknown.", args[i]); goto finish; }