diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-02-09 15:13:12 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-02-09 15:13:12 -0500 |
commit | badc6c229f47964f5750a55a26204d847b33b32a (patch) | |
tree | 7ec460e1f0cc19de2eb44b7ebab6a4f54f8b2154 | |
parent | 6605764c523787141272fe83c3d46a65aea7649d (diff) |
Create any missing directory necessary to put the wrapper file into. Closes: #514384
-rw-r--r-- | IkiWiki/Wrapper.pm | 5 | ||||
-rw-r--r-- | debian/changelog | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/IkiWiki/Wrapper.pm b/IkiWiki/Wrapper.pm index 7b54caf99..6555fe625 100644 --- a/IkiWiki/Wrapper.pm +++ b/IkiWiki/Wrapper.pm @@ -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> diff --git a/debian/changelog b/debian/changelog index d2b701db7..294d23197 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 |