From: Lennart Poettering Date: Wed, 2 Jul 2014 23:19:26 +0000 (+0200) Subject: sd-login: use the same code for verfiying machine names everywhere X-Git-Tag: v215~37 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=620a687cd2b27e93e289e057aad0e57f30651bf9;hp=db9bb83fa5ec72da38eb5bd0c259ef8c76a71858;ds=sidebyside sd-login: use the same code for verfiying machine names everywhere --- 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);