diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-03 01:19:26 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-03 01:19:26 +0200 |
commit | 620a687cd2b27e93e289e057aad0e57f30651bf9 (patch) | |
tree | bd99b6f86a19a5e74d33789b79651f56cf39bc06 | |
parent | db9bb83fa5ec72da38eb5bd0c259ef8c76a71858 (diff) |
sd-login: use the same code for verfiying machine names everywhere
-rw-r--r-- | src/libsystemd/sd-login/sd-login.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-login/sd-login.c b/src/libsystemd/sd-login/sd-login.c index 375a5388aa..d1478ddb78 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); |