On Sat, Dec 10, 2005 at 01:21:27PM -1000, Joshua Hoblitt wrote: > On Sat, Dec 10, 2005 at 03:04:09PM -0800, chromatic wrote: > > Seems reasonable to me, unless curdir() can ever return 0 or undef, and > > also fixes my bug #37875. > > We could explicitly test if the return eq '' which would let 0 through > but it would still filter out undef. I supposed it's possible that the > current dir might be named 0. ;) > > Revised patch is attached.
I decided to allow undef to pass through as well in case File::Spec's behavior changes in the future. -- return (defined $rel_path and $rel_path eq '') ? '.' : $rel_path; -- Committed as r10438. Cheers, -J --
pgpX3GjrXyPaI.pgp
Description: PGP signature