Fix corner case where only -d is specified as a single directory.

This commit is contained in:
Adam Spiers 2011-12-01 16:23:04 +00:00
parent 4e831ae7bd
commit 4d6c23600b

View file

@ -529,7 +529,7 @@ sub sanitize_path_options {
$options->{target} =~ s/ +\z//;
}
else {
$options->{target} = parent($options->{dir});
$options->{target} = parent($options->{dir}) || '.';
}
}