1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-01-04 03:02:02 +02:00

change file mode from 0222 to 0666 (#494)

This commit is contained in:
Vladimir Fetisov 2020-05-02 21:43:43 +03:00 committed by GitHub
parent 9be14417b3
commit 83fa54e65a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")
}