From 83fa54e65aeeb6656364768b15ee4064a5ccac65 Mon Sep 17 00:00:00 2001 From: Vladimir Fetisov Date: Sat, 2 May 2020 21:43:43 +0300 Subject: [PATCH] change file mode from 0222 to 0666 (#494) --- pkg/stdlib/io/fs/write.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/stdlib/io/fs/write.go b/pkg/stdlib/io/fs/write.go index e8366045..f5da9cc6 100644 --- a/pkg/stdlib/io/fs/write.go +++ b/pkg/stdlib/io/fs/write.go @@ -40,8 +40,8 @@ func Write(_ context.Context, args ...core.Value) (core.Value, error) { } } - // 0222 - write only permissions - file, err := os.OpenFile(fpath, params.ModeFlag, 0222) + // 0666 - read & write + file, err := os.OpenFile(fpath, params.ModeFlag, 0666) if err != nil { return values.None, core.Error(err, "open file") }