diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-10-22 23:20:59 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-10-22 23:22:47 +0200 |
commit | affcf189153714f0de4d0986d18e2bc1b35c1b20 (patch) | |
tree | b7e0c74332eda32a24962b206d3a7a66dd33cfb6 /src/shared | |
parent | 505e77caa5cafce27b0dbfcf23e9b28315d167ae (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')
-rw-r--r-- | src/shared/logs-show.c | 2 |
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); |