X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/b668227481028db996487cf64cee68a771dc9868..d658cabb93ee974c5728e04abcde6b22a94095fd:/doc/bugs/ikiwiki-mass-rebuild_fails_to_drop_privileges_and_execute_ikiwiki.mdwn diff --git a/doc/bugs/ikiwiki-mass-rebuild_fails_to_drop_privileges_and_execute_ikiwiki.mdwn b/doc/bugs/ikiwiki-mass-rebuild_fails_to_drop_privileges_and_execute_ikiwiki.mdwn index ae7f908d2..2eaca7632 100644 --- a/doc/bugs/ikiwiki-mass-rebuild_fails_to_drop_privileges_and_execute_ikiwiki.mdwn +++ b/doc/bugs/ikiwiki-mass-rebuild_fails_to_drop_privileges_and_execute_ikiwiki.mdwn @@ -2,6 +2,12 @@ The ikiwiki-mass-rebuild utility fails to drop privileges and fails to execute i The solution is to set the effective UID after setting the real UID, and to set $PATH in the environment before calling exec(). +> Why does the PATH need to be reset? --[[Joey]] + +> > It doesn't - it needs to be set. The line with `%ENV=();` clears the environment, thus no `$PATH` is set. --[[HenrikBrixAndersen]] + +> > > I guess it shouldn't clear it then. Both [[done]] --[[Joey]] + Proposed patch: --- ikiwiki-mass-rebuild.orig 2007-08-15 22:21:59.000000000 +0200