agent-harness / tasks /patches /TASK_CR_012_source.patch
cuber12's picture
Publish agent harness research code and paper artifacts
d61821a verified
Raw
History Blame Contribute Delete
488 Bytes
diff --git a/helpers/archives/gzip_create.go b/helpers/archives/gzip_create.go
index b2b85281..082f2507 100644
--- a/helpers/archives/gzip_create.go
+++ b/helpers/archives/gzip_create.go
@@ -27,7 +27,7 @@ func writeGzipFile(w io.Writer, fileName string, fileInfo os.FileInfo) error {
}
gz := gzip.NewWriter(w)
- gz.Header.Name = fileInfo.Name()
+ gz.Header.Name = sanitizePath(fileInfo.Name())
gz.Header.Comment = sanitizePath(fileName)
gz.Header.ModTime = fileInfo.ModTime()