You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ms...@apache.org on 2020/08/17 10:00:25 UTC

[openwhisk-runtime-go] branch master updated: Make unzip always create sub dir using mode 0755 (#126)

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 <ji...@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 <ji...@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 {