1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00

- fixed FlattenHash bug

- better handling of .. in filenames
This commit is contained in:
Andrew Tridgell -
parent feb1239576
commit 4a9953f55b

View File

@ -28,7 +28,7 @@ sub FlattenHash($)
my $a = shift;
my %b;
for my $d (@{$a}) {
for my $k (%{$d}) {
for my $k (keys %{$d}) {
$b{$k} = $d->{$k};
}
}
@ -102,7 +102,7 @@ sub ChangeExtension($$)
{
my($fname) = shift;
my($ext) = shift;
if ($fname =~ /^(.*?)\.(.*?)$/) {
if ($fname =~ /^(.*)\.(.*?)$/) {
return "$1.$ext";
}
return "$fname.$ext";