mirror of
https://github.com/rclone/rclone.git
synced 2025-03-10 04:25:13 +08:00
serve nfs: fix unlikely crash
This commit is contained in:
parent
aab6643cea
commit
64b3d1d539
@ -29,6 +29,7 @@ func setSys(fi os.FileInfo) {
|
|||||||
node, ok := fi.(vfs.Node)
|
node, ok := fi.(vfs.Node)
|
||||||
if !ok {
|
if !ok {
|
||||||
fs.Errorf(fi, "internal error: %T is not a vfs.Node", fi)
|
fs.Errorf(fi, "internal error: %T is not a vfs.Node", fi)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
vfs := node.VFS()
|
vfs := node.VFS()
|
||||||
// Set the UID and GID for the node passed in from the VFS defaults.
|
// Set the UID and GID for the node passed in from the VFS defaults.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user