forked from TrueCloudLab/rclone
serve nfs: mask unimplemented error from chmod
This commit is contained in:
parent
877321c2fb
commit
cae22a7562
1 changed files with 6 additions and 1 deletions
|
@ -122,7 +122,12 @@ func (f *FS) Chmod(name string, mode os.FileMode) (err error) {
|
||||||
fs.Logf(f, "Error while closing file: %e", err)
|
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
|
// Lchown changes the owner of symlink
|
||||||
|
|
Loading…
Add table
Reference in a new issue