core/exec-invoke: add a comment that acquire_home uses result from get_fixed_user

Prompted by https://github.com/systemd/systemd/pull/33016#discussion_r1614848067
This commit is contained in:
Mike Yuan
2024-05-26 13:40:48 +08:00
parent c0afdec5cf
commit 3a14167102
+1 -1
View File
@@ -3594,7 +3594,7 @@ static int acquire_home(const ExecContext *c, const char **home, char **ret_buf)
/* If WorkingDirectory=~ is set, try to acquire a usable home directory. */
if (*home)
if (*home) /* Already acquired from get_fixed_user()? */
return 0;
if (!c->working_directory_home)