This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/master by this push:
     new 77e69e8  chore(builder): ensure files added tot he tar archive have 
the right permissions
     new ba4a1a6  Merge pull request #741 from lburgazzoli/tar-permissions
77e69e8 is described below

commit 77e69e8221dc4ee5f8214383a12a2488953073fc
Author: lburgazzoli <lburgazz...@gmail.com>
AuthorDate: Wed Jun 12 10:38:57 2019 +0200

    chore(builder): ensure files added tot he tar archive have the right 
permissions
---
 pkg/util/tar/appender.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/util/tar/appender.go b/pkg/util/tar/appender.go
index 47bb8a4..5ff62dc 100644
--- a/pkg/util/tar/appender.go
+++ b/pkg/util/tar/appender.go
@@ -74,7 +74,7 @@ func (t *Appender) AddFile(filePath string, tarDir string) 
(string, error) {
        if err := t.writer.WriteHeader(&atar.Header{
                Name:    fileName,
                Size:    info.Size(),
-               Mode:    int64(info.Mode()),
+               Mode:    0644,
                ModTime: info.ModTime(),
        }); err != nil {
                return "", err
@@ -108,7 +108,7 @@ func (t *Appender) AddFileWithName(fileName string, 
filePath string, tarDir stri
        if err := t.writer.WriteHeader(&atar.Header{
                Name:    fileName,
                Size:    info.Size(),
-               Mode:    int64(info.Mode()),
+               Mode:    0644,
                ModTime: info.ModTime(),
        }); err != nil {
                return "", err

Reply via email to