X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Flogs-show.c;h=04e1165191068b7494730fa99ebe49d2734200c9;hp=d5d9d090b5c41a30a943af1b2c8c18034c1ec06c;hb=affcf189153714f0de4d0986d18e2bc1b35c1b20;hpb=9fd290443f5f99fca0dcd4216b1de70f7d3b8db1 diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c index d5d9d090b..04e116519 100644 --- a/src/shared/logs-show.c +++ b/src/shared/logs-show.c @@ -447,6 +447,8 @@ static int output_verbose( } fprintf(f, "%s [%s]\n", + flags & OUTPUT_UTC ? + format_timestamp_us_utc(ts, sizeof(ts), realtime) : format_timestamp_us(ts, sizeof(ts), realtime), cursor); @@ -1153,7 +1155,7 @@ static int get_boot_id_for_machine(const char *machine, sd_id128_t *boot_id) { assert(machine); assert(boot_id); - if (!filename_is_safe(machine)) + if (!machine_name_is_valid(machine)) return -EINVAL; r = container_get_leader(machine, &pid);