chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
memfd: always create our memfds with CLOEXEC set
[elogind.git]
/
src
/
shared
/
logs-show.c
diff --git
a/src/shared/logs-show.c
b/src/shared/logs-show.c
index e30e6865ac646dd42bf46efd3f555db222af1c25..04e1165191068b7494730fa99ebe49d2734200c9 100644
(file)
--- a/
src/shared/logs-show.c
+++ b/
src/shared/logs-show.c
@@
-447,7
+447,9
@@
static int output_verbose(
}
fprintf(f, "%s [%s]\n",
}
fprintf(f, "%s [%s]\n",
- format_timestamp_us(ts, sizeof(ts), realtime, flags & OUTPUT_UTC),
+ flags & OUTPUT_UTC ?
+ format_timestamp_us_utc(ts, sizeof(ts), realtime) :
+ format_timestamp_us(ts, sizeof(ts), realtime),
cursor);
JOURNAL_FOREACH_DATA_RETVAL(j, data, length, r) {
cursor);
JOURNAL_FOREACH_DATA_RETVAL(j, data, length, r) {
@@
-1153,7
+1155,7
@@
static int get_boot_id_for_machine(const char *machine, sd_id128_t *boot_id) {
assert(machine);
assert(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);
return -EINVAL;
r = container_get_leader(machine, &pid);