mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-04 17:47:03 +03:00
sd-login: use the same code for verfiying machine names everywhere
This commit is contained in:
parent
db9bb83fa5
commit
620a687cd2
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user