From 8eb7e1cbf708e329203b993a518e6669d172cd8f Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 6 Oct 2010 19:55:01 -0400 Subject: [PATCH] further correction to the invocation of unzip Signed-off-by: Galen Charlton --- tools/picture-upload.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/picture-upload.pl b/tools/picture-upload.pl index b60f83c7d2..4642365834 100755 --- a/tools/picture-upload.pl +++ b/tools/picture-upload.pl @@ -95,7 +95,7 @@ if ( ($op eq 'Upload') && $uploadfile ) { # Case is important in these ope } close $tfh; if ( $filetype eq 'zip' ) { - unless (system("unzip", "$tempfile -d $dirname") == 0) { + unless (system("unzip", $tempfile, '-d', $dirname) == 0) { $errors{'UZIPFAIL'} = $uploadfilename; $template->param( ERRORS => [ \%errors ] ); output_html_with_http_headers $input, $cookie, $template->output; # This error is fatal to the import, so bail out here -- 2.39.5