Create any missing directory necessary to put the wrapper file into. Closes: #514384
authorJoey Hess <joey@gnu.kitenet.net>
Mon, 9 Feb 2009 20:13:12 +0000 (15:13 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Mon, 9 Feb 2009 20:13:12 +0000 (15:13 -0500)
IkiWiki/Wrapper.pm
debian/changelog

index 7b54caf99cd41ea4f38a6c9e1b5619350d70caad..6555fe625f8e542e786f3b6d7d05a72772ea207f 100644 (file)
@@ -93,10 +93,7 @@ EOF
        $configstring=~s/"/\\"/g;
        $configstring=~s/\n/\\n/g;
        
-       #translators: The first parameter is a filename, and the second is
-       #translators: a (probably not translated) error message.
-       open(OUT, ">$wrapper.c") || error(sprintf(gettext("failed to write %s: %s"), "$wrapper.c", $!));
-       print OUT <<"EOF";
+       writefile(basename("$wrapper.c"), dirname($wrapper), <<"EOF");
 /* A wrapper for ikiwiki, can be safely made suid. */
 #include <stdio.h>
 #include <sys/types.h>
index d2b701db7e8c511a2265dfcbff8f5d382d1123ec..294d231976f9bd364623f48884ce755da85bf757 100644 (file)
@@ -9,6 +9,8 @@ ikiwiki (3.04) UNRELEASED; urgency=low
     (smcv) 
   * Updated German translation (Kai Wasserbäch). Closes: #514251
   * Fix unusual --setup --post-commit command line option combo.
+  * Create any missing directory necessary to put the wrapper
+    file into. Closes: #514384
 
  -- Joey Hess <joeyh@debian.org>  Sat, 31 Jan 2009 19:04:45 -0500