]> sipb.mit.edu Git - ikiwiki.git/commitdiff
chdir to srcdir in rcs_getctime
authorJoey Hess <joey@kitenet.net>
Thu, 24 Jun 2010 01:29:47 +0000 (21:29 -0400)
committerJoey Hess <joey@kitenet.net>
Thu, 24 Jun 2010 01:29:47 +0000 (21:29 -0400)
IkiWiki/Plugin/cvs.pm

index 1a432c05248f2d8e74db1858d4c5b8271ec42310..4972efb5838724bf58bf722b96b591b34c9b6a28 100644 (file)
@@ -459,7 +459,9 @@ sub rcs_diff ($) {
 }
 
 sub rcs_getctime ($) {
-       my $file=$config{srcdir}."/".shift();
+       my $file=shift;
+
+       local $CWD = $config{srcdir};
 
        my $cvs_log_infoline=qr/^date: (.+);\s+author/;