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:
parent
9be14417b3
commit
83fa54e65a
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user