From: Joey Hess Date: Thu, 1 Jul 2010 19:52:03 +0000 (-0400) Subject: add note about genwrapper code running before wrapper sanitizes environment X-Git-Tag: 3.20100704~17 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/824ad84e2b490e3aa9107e3a3d244bd8e041d918 add note about genwrapper code running before wrapper sanitizes environment (That is needed for the receive test code.) --- diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn index a921b9a02..bb8012342 100644 --- a/doc/plugins/write.mdwn +++ b/doc/plugins/write.mdwn @@ -595,7 +595,10 @@ describes the plugin as a whole. For example: hook(type => "genwrapper", id => "foo", call => \&genwrapper); This hook is used to inject C code (which it returns) into the `main` -function of the ikiwiki wrapper when it is being generated. +function of the ikiwiki wrapper when it is being generated. + +The code runs before anything else -- in particular it runs before +the suid wrapper has sanitized its environment. ## Exported variables