mirror of
https://github.com/MontFerret/ferret.git
synced 2025-01-22 03:39:08 +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
|
// 0666 - read & write
|
||||||
file, err := os.OpenFile(fpath, params.ModeFlag, 0222)
|
file, err := os.OpenFile(fpath, params.ModeFlag, 0666)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return values.None, core.Error(err, "open file")
|
return values.None, core.Error(err, "open file")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user