1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-31 23:53:18 +00:00

serve nfs: fix unlikely crash

This commit is contained in:
Nick Craig-Wood
2025-03-05 11:08:26 +00:00
parent d725f4f4de
commit 2e853b6e75

View File

@@ -29,6 +29,7 @@ func setSys(fi os.FileInfo) {
node, ok := fi.(vfs.Node)
if !ok {
fs.Errorf(fi, "internal error: %T is not a vfs.Node", fi)
return
}
vfs := node.VFS()
// Set the UID and GID for the node passed in from the VFS defaults.