From 9c1a057756c8f1ef486642699e45a9fa6df0b071 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Tue, 17 Jan 2017 00:17:27 -0500 Subject: Changes to archive handling to improve cross-platform compatibility --- archive/archive.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'archive/archive.go') diff --git a/archive/archive.go b/archive/archive.go index 6941b64..08b1c75 100644 --- a/archive/archive.go +++ b/archive/archive.go @@ -74,9 +74,10 @@ func tarWalkfn(writer *tar.Writer) filepath.WalkFunc { // TODO; See if tar.FileInfoheader() could be used instead // without the pathing issues I encountered h := &tar.Header{ - Name: path, - Size: info.Size(), - Mode: int64(info.Mode()), + Name: path, + Size: info.Size(), + // I don't like it... but it helps with platform compatibility + Mode: 0664, ModTime: info.ModTime(), } -- cgit v1.2.3