From: Joey Hess <joey@kitenet.net>
Date: Fri, 18 Jun 2010 16:50:31 +0000 (-0400)
Subject: avoid shelling
X-Git-Tag: 3.20100623~42
X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/d5199424c5625a816a2a3204708905e76bfb71aa?ds=inline;hp=--cc

avoid shelling
---

d5199424c5625a816a2a3204708905e76bfb71aa
diff --git a/IkiWiki/Plugin/bzr.pm b/IkiWiki/Plugin/bzr.pm
index e7c1b8d8e..9bee0c4b2 100644
--- a/IkiWiki/Plugin/bzr.pm
+++ b/IkiWiki/Plugin/bzr.pm
@@ -287,9 +287,7 @@ sub rcs_diff ($) {
 }
 
 sub extract_timestamp (@) {
-	# XXX filename passes through the shell here, should try to avoid
-	# that just in case
-	open (my $out, "@_ |");
+	open (my $out, "-|", @_);
 	my @log = bzr_log($out);
 
 	if (length @log < 1) {