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

msciabarra pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-runtime-go.git


The following commit(s) were added to refs/heads/master by this push:
     new 16aa5d3  Make unzip always create sub dir using mode 0755 (#126)
16aa5d3 is described below

commit 16aa5d3acd44a774e8ae83678c6fdb3c29cff73b
Author: jiangpch <jiangpengch...@navercorp.com>
AuthorDate: Mon Aug 17 18:00:19 2020 +0800

    Make unzip always create sub dir using mode 0755 (#126)
    
    Co-authored-by: jiang.pengcheng <jiang.pengch...@navercorp.com>
---
 openwhisk/zip.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/openwhisk/zip.go b/openwhisk/zip.go
index 5f97696..fd4b994 100644
--- a/openwhisk/zip.go
+++ b/openwhisk/zip.go
@@ -67,7 +67,7 @@ func Unzip(src []byte, dest string) error {
                }
                path := filepath.Join(dest, f.Name)
                if f.FileInfo().IsDir() {
-                       return os.MkdirAll(path, f.Mode())
+                       return os.MkdirAll(path, 0755)
                }
                err = os.MkdirAll(filepath.Dir(path), 0755)
                if err != nil {

Reply via email to