SetAttrMore requires write on fd

This commit is contained in:
Ben McClelland
2019-06-14 15:07:17 -07:00
parent 19775d4511
commit 6989375eb6

View File

@@ -168,7 +168,7 @@ func FStatMore(f *os.File) (Stat, error) {
// SetAttrMore sets special scoutfs attributes
func SetAttrMore(path string, version, size, flags uint64, ctime time.Time) error {
f, err := os.Open(path)
f, err := os.OpenFile(path, os.O_RDWR, 0600)
if err != nil {
return err
}