1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-04 13:51:24 +03:00

logind: normalize home path when creating user object

Triggered by: #11910
This commit is contained in:
Lennart Poettering 2019-03-07 10:31:26 +01:00
parent f5164dfebc
commit cd13d971dc

View File

@ -68,6 +68,8 @@ int user_new(User **ret,
if (!u->home)
return -ENOMEM;
path_simplify(u->home, true);
if (asprintf(&u->state_file, "/run/systemd/users/"UID_FMT, uid) < 0)
return -ENOMEM;