Skip to content

Commit

Permalink
Properly construct filenames relative to the target directory if they
Browse files Browse the repository at this point in the history
are not absolute
  • Loading branch information
Max Maischein committed Nov 8, 2024
1 parent 29bf44c commit 93d0286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/curl.pl
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ ( $req )
}
}

my $target = File::Spec->catfile( $target_directory, $filename );
my $target = File::Spec->rel2abs( $target_directory, $filename );
if( -e $target ) {
msg( "$target already exists, resuming" );
$req->headers->{Range} = "bytes=" . -s( $filename ). "-";
Expand Down

0 comments on commit 93d0286

Please sign in to comment.