willscott / go-nfs

golang NFSv3 server
Apache License 2.0
701 stars 76 forks source link

fs.Stat is called when fs.Lstat should be called #87

Closed DUOLabs333 closed 1 year ago

DUOLabs333 commented 1 year ago

When calling ls on a file in a mounted directory, files that are symlinks show up as their underlying files. This is because ls corresponds to a Lstat call (which doesn't follow symlinks), while the NFS server calls Stat.

willscott commented 1 year ago
DUOLabs333 commented 1 year ago

Sorry, I meant when doing something like ls -alh foo.txt.

willscott commented 1 year ago

sure.

DUOLabs333 commented 1 year ago

Oh, so lstat and stat gets converted to the same call?

willscott commented 1 year ago

i believe that's correct