[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-stow] stow's parent() can't handle '/'
From: |
Jan Echternach |
Subject: |
[Bug-stow] stow's parent() can't handle '/' |
Date: |
Mon, 10 Jun 2002 23:26:39 +0200 |
User-agent: |
Mutt/1.3.22.1i |
Hi,
stow doesn't work properly from a "/stow" directory (such that the common
parent is "/") because it attempts a "chdir()" instead of "chdir('/')",
creating links below the user's home directory instead of in /bin,
/sbin etc.
I've fixed it for me with this change:
@@ -476,7 +476,9 @@
local($path) = join('/', @_);
local(@elts) = split(/\/+/, $path);
pop(@elts);
- join('/', @elts);
+ local($parent) = join('/', @elts);
+ $parent = '/' if $parent eq '';
+ return $parent;
}
sub usage {
--
Jan fortune: can't load library '/libc.so.4'
No such library.
- [Bug-stow] stow's parent() can't handle '/',
Jan Echternach <=