summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-07-03 01:19:26 +0200
committerLennart Poettering <lennart@poettering.net>2014-07-03 01:19:26 +0200
commit620a687cd2b27e93e289e057aad0e57f30651bf9 (patch)
treebd99b6f86a19a5e74d33789b79651f56cf39bc06
parentdb9bb83fa5ec72da38eb5bd0c259ef8c76a71858 (diff)
sd-login: use the same code for verfiying machine names everywhere
-rw-r--r--src/libsystemd/sd-login/sd-login.c2
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);