Merge branch 'svn-trunk'

This commit is contained in:
Bart Van Assche
2021-07-11 20:45:53 -07:00

View File

@@ -11,6 +11,7 @@ use strict;
use warnings;
use 5.005;
use Fcntl ':mode';
use File::Spec;
use IO::Handle;
use IO::File;
use Carp qw(cluck);
@@ -4635,17 +4636,7 @@ sub _syswrite {
}
sub make_path {
my $path;
foreach my $element (@_) {
if ($path && rindex($path, '/') != length($path) - 1) {
$path .= '/';
}
cluck("make_path: invalid argument") if !valid($element);
$path .= $element;
}
return $path;
return File::Spec->catdir(@_);
}
;1 __END__