cvs2cl

From: Rich Bowen <rbowen@cre8tivegroup.com>
Date: Thu Jan 03 2002 - 15:27:37 GMT

I have discovered a strange bug in cvs2cl which will only show up in a
VERY specific situation. If you have a directory called '0' (The number
0) anywhere in a directory tree where you are running cvs2cl, you will
get into an infinite loop in the lines at about line 1208, 1209 (I may
have screwed up the line numbers in my hacking).

You have:

$accum1 .= "$tmp1/" if ((defined($tmp1) and $tmp1));

or something similar to that.

However, if the directory is called '0', you'll be there forever.

I have it patched to explicitly check for this case:

$accum1 .= "$tmp1/" if ((defined ($tmp1)) and ($tmp1 or $tmp1 eq '0'));

But there might be a better way to do this.

Thanks for this great tool. Hope this helps make it even better.

-- 
http://products.cre8tivegroup.com/
Received on Thu May 23 08:33:09 2002

This archive was generated by hypermail 2.1.8 : Wed Jan 21 2004 - 16:25:33 GMT