summaryrefslogtreecommitdiff
path: root/src/shared/logs-show.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-10-22 23:20:59 +0200
committerLennart Poettering <lennart@poettering.net>2014-10-22 23:22:47 +0200
commitaffcf189153714f0de4d0986d18e2bc1b35c1b20 (patch)
treeb7e0c74332eda32a24962b206d3a7a66dd33cfb6 /src/shared/logs-show.c
parent505e77caa5cafce27b0dbfcf23e9b28315d167ae (diff)
machine: validate machine names using machine_name_is_valid() instead of string_is_safe()
After all, we know have this as generic validator, so let's be correct and use it wherver applicable.
Diffstat (limited to 'src/shared/logs-show.c')
-rw-r--r--src/shared/logs-show.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c
index 3d742491c9..04e1165191 100644
--- a/src/shared/logs-show.c
+++ b/src/shared/logs-show.c
@@ -1155,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);