From 620a687cd2b27e93e289e057aad0e57f30651bf9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 3 Jul 2014 01:19:26 +0200 Subject: [PATCH 1/1] sd-login: use the same code for verfiying machine names everywhere --- src/libsystemd/sd-login/sd-login.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd/sd-login/sd-login.c b/src/libsystemd/sd-login/sd-login.c index 375a5388a..d1478ddb7 100644 --- a/src/libsystemd/sd-login/sd-login.c +++ b/src/libsystemd/sd-login/sd-login.c @@ -770,7 +770,7 @@ _public_ int sd_machine_get_class(const char *machine, char **class) { const char *p; int r; - assert_return(filename_is_safe(machine), -EINVAL); + assert_return(machine_name_is_valid(machine), -EINVAL); assert_return(class, -EINVAL); p = strappenda("/run/systemd/machines/", machine); -- 2.30.2