X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flogin%2Floginctl.c;h=914f3169989551dd8c54de0ef6537b2efca7b6fd;hb=66c7a5332a9ef33143ab57f5f0d1cff0dc4d6ac5;hp=7e64066479f0ad3241d22457d07205bc12c24294;hpb=841aa8c0b484b96654b95d3c4e936e37da4c7dda;p=elogind.git diff --git a/src/login/loginctl.c b/src/login/loginctl.c index 7e6406647..914f31699 100644 --- a/src/login/loginctl.c +++ b/src/login/loginctl.c @@ -372,7 +372,7 @@ static int print_session_status_info(sd_bus *bus, const char *path, bool *new_li { "Remote", "b", NULL, offsetof(SessionStatusInfo, remote) }, { "Timestamp", "t", NULL, offsetof(SessionStatusInfo, timestamp) }, { "User", "(uo)", prop_map_first_of_struct, offsetof(SessionStatusInfo, uid) }, - { "Seat", "(so)", prop_map_first_of_struct, offsetof(SessionStatusInfo, id) }, + { "Seat", "(so)", prop_map_first_of_struct, offsetof(SessionStatusInfo, seat) }, {} }; @@ -419,7 +419,7 @@ static int print_session_status_info(sd_bus *bus, const char *path, bool *new_li printf("\n"); } - if (i.seat) { + if (!isempty(i.seat)) { printf("\t Seat: %s", i.seat); if (i.vtnr > 0)