summaryrefslogtreecommitdiffstats
path: root/CVSROOT
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2001-09-24 12:41:54 +0000
committerjoe <joe@FreeBSD.org>2001-09-24 12:41:54 +0000
commitb1638ff88d18683c9fc4ca9cab003a7dc653afda (patch)
treee69111cc2d55f5f9062408aaaa6652338d40196b /CVSROOT
parentedf32a005a86f21d247b2cf60399c25f6d1facce (diff)
downloadFreeBSD-ports-b1638ff88d18683c9fc4ca9cab003a7dc653afda.zip
FreeBSD-ports-b1638ff88d18683c9fc4ca9cab003a7dc653afda.tar.gz
Avoid getting bitten by filenames that have a ',' character in them.
Bug spotted by: alex
Diffstat (limited to 'CVSROOT')
-rwxr-xr-xCVSROOT/log_accum.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/CVSROOT/log_accum.pl b/CVSROOT/log_accum.pl
index 62348f0..c41b663 100755
--- a/CVSROOT/log_accum.pl
+++ b/CVSROOT/log_accum.pl
@@ -289,7 +289,7 @@ sub change_summary_changed {
close RCS;
}
- &append_line($outfile, "$rev,$delta,$rcsfile,");
+ &append_line($outfile, "$rev,$delta,,$rcsfile");
}
}
@@ -311,7 +311,7 @@ sub change_summary_added {
$delta = "+$lines -0";
}
- &append_line($outfile, "$rev,$delta,$rcsfile,new");
+ &append_line($outfile, "$rev,$delta,new,$rcsfile");
}
}
@@ -344,7 +344,7 @@ sub change_summary_removed {
$delta = "+0 -$lines";
}
- &append_line($outfile, "$rev,$delta,$rcsfile,dead");
+ &append_line($outfile, "$rev,$delta,dead,$rcsfile");
}
}
@@ -508,11 +508,11 @@ sub format_summaries {
open FILE, $filename or next;
while (<FILE>) {
chomp;
- my ($r, $d, $f, $s) = split /,/, $_;
+ my ($r, $d, $s, $f) = split(/,/, $_, 4);
push @revs, $r;
push @deltas, $d;
- push @files, $f;
push @statuses, $s;
+ push @files, $f;
}
close FILE;
}
OpenPOWER on IntegriCloud