<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - Executing within home directory of the given user"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=55163#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - Executing within home directory of the given user"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=55163">bug 55163</a>
              from <span class="vcard"><a class="email" href="mailto:j.witteveen@gmail.com" title="j.witteveen@gmail.com">j.witteveen@gmail.com</a>
</span></b>
        <pre>One possible fix would be to change src/core/unit.c:unit_patch_contexts,
replacing

if (u->manager->running_as == SYSTEMD_USER && !ec->working_directory) {

with something along the lines of

if (/* uid of process-to-run != 0 */ && !ec->working_directory) {

and also modify src/shared/util.c:get_home_dir, where we add the uid as a
parameter.

Would this be acceptable? If so, I will try to come up with a patch.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>