From 8207b9df91ef7d71a8554d1d5e3ef390cea94b76 Mon Sep 17 00:00:00 2001 From: Harsh Bafna Date: Tue, 9 Nov 2021 02:11:30 +0530 Subject: [PATCH] fixed file permission --- aws-sam-cli-main/samcli/local/lambdafn/runtime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws-sam-cli-main/samcli/local/lambdafn/runtime.py b/aws-sam-cli-main/samcli/local/lambdafn/runtime.py index 163f967..3cce676 100644 --- a/aws-sam-cli-main/samcli/local/lambdafn/runtime.py +++ b/aws-sam-cli-main/samcli/local/lambdafn/runtime.py @@ -488,7 +488,7 @@ def _unzip_file(filepath): temp_dir = tempfile.mkdtemp() if os.name == "posix": - os.chmod(temp_dir, 0o755) + os.chmod(temp_dir, 0o400) LOG.info("Decompressing %s", filepath)