]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/exec-invoke: add a comment that acquire_home uses result from get_fixed_user
authorMike Yuan <me@yhndnzj.com>
Sat, 25 May 2024 20:16:15 +0000 (04:16 +0800)
committerMike Yuan <me@yhndnzj.com>
Sun, 26 May 2024 05:40:48 +0000 (13:40 +0800)
Prompted by https://github.com/systemd/systemd/pull/33016#discussion_r1614848067

src/core/exec-invoke.c

index e719976daa4fca45be64d83a839c6444cdbc48e7..ee62ff3dd42847c9c69777d5d0874cdf4d52c912 100644 (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)