From d8d35c8be97f90b5a3e78f95415f0f4ad95404fb Mon Sep 17 00:00:00 2001 From: Dan Fabulich Date: Tue, 1 Sep 2026 18:13:03 -0700 Subject: [PATCH] Fix zip-of-zips subdirectories for single files When we pass just one argument to `addFile`, the zip member name is set to the unnormalized absolute path to the `$src_file`. Fixes #476 --- IFComp/script/build_zip_of_zips.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IFComp/script/build_zip_of_zips.pl b/IFComp/script/build_zip_of_zips.pl index 1dc8fbba..28e8bf2c 100644 --- a/IFComp/script/build_zip_of_zips.pl +++ b/IFComp/script/build_zip_of_zips.pl @@ -52,7 +52,7 @@ } else { my $zip = Archive::Zip->new(); - my $zipfile = $zip->addFile($src_path); + my $zipfile = $zip->addFile( $src_path, basename($src_path) ); unless ( defined $zipfile ) { warn "Failed to add file to zip: $!\n"; last;