mirror of
https://github.com/versity/scoutfs-go.git
synced 2026-01-07 04:06:30 +00:00
SetAttrMore requires write on fd
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user