logind: normalize home path when creating user object
Triggered by: #11910
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user