serve nfs: mask unimplemented error from chmod

This commit is contained in:
Nick Craig-Wood 2024-06-25 08:10:37 +01:00
parent 877321c2fb
commit cae22a7562

View File

@ -122,7 +122,12 @@ func (f *FS) Chmod(name string, mode os.FileMode) (err error) {
fs.Logf(f, "Error while closing file: %e", err)
}
}()
return file.Chmod(mode)
err = file.Chmod(mode)
// Mask Chmod not implemented
if err == vfs.ENOSYS {
err = nil
}
return err
}
// Lchown changes the owner of symlink