]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
homectl: fix inverted table footer condition
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 3 Oct 2024 17:06:49 +0000 (19:06 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 3 Oct 2024 19:53:24 +0000 (20:53 +0100)
Fixup for 2413a0fab4fdad7eef3ce1d4b57664be5795b002.

src/home/homectl.c

index d1cc8146b6a88c64fabdb65f7909ea7569604ff9..741e5d72b7a4dc5f8357f73ebf2f195534150d35 100644 (file)
@@ -214,7 +214,7 @@ static int list_homes(int argc, char *argv[], void *userdata) {
                         return r;
         }
 
-        if (arg_legend && !FLAGS_SET(arg_json_format_flags, SD_JSON_FORMAT_OFF)) {
+        if (arg_legend && FLAGS_SET(arg_json_format_flags, SD_JSON_FORMAT_OFF)) {
                 if (table_isempty(table))
                         printf("No home areas.\n");
                 else