projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
2ad7ff0
)
Allow for directory named "0"
Perl 5 Porters [Tue, 14 May 1996 08:42:17 +0000 (08:42 +0000)]
lib/getcwd.pl
patch
|
blob
|
blame
|
history
diff --git
a/lib/getcwd.pl
b/lib/getcwd.pl
index
8db8e20
..
d886018
100644
(file)
--- a/
lib/getcwd.pl
+++ b/
lib/getcwd.pl
@@
-54,7
+54,7
@@
sub getcwd
}
$cwd = "$dir/$cwd";
closedir(getcwd'PARENT); #');
- } while ($dir);
+ } while ($dir ne '');
chop($cwd);
$cwd;
}