mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 05:36:22 +00:00
scstadmin: Modify make_path() such that there is only a single leading slash at the start of absolute paths and such that it does not convert relative paths into absolute paths.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3703 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -3850,7 +3850,10 @@ sub make_path {
|
||||
my $path;
|
||||
|
||||
foreach my $element (@_) {
|
||||
$path .= "/$element";
|
||||
if ($path && rindex($path, '/') != length($path) - 1) {
|
||||
$path .= '/';
|
||||
}
|
||||
$path .= $element;
|
||||
}
|
||||
|
||||
return $path;
|
||||
|
||||
Reference in New Issue
Block a user