]> sipb.mit.edu Git - ikiwiki.git/commitdiff
add note about genwrapper code running before wrapper sanitizes environment
authorJoey Hess <joey@kitenet.net>
Thu, 1 Jul 2010 19:52:03 +0000 (15:52 -0400)
committerJoey Hess <joey@kitenet.net>
Thu, 1 Jul 2010 19:52:03 +0000 (15:52 -0400)
(That is needed for the receive test code.)

doc/plugins/write.mdwn

index a921b9a0272098e191987c80066c6e7931cafa2e..bb80123423453c5d01a558569f48924e05fbba55 100644 (file)
@@ -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