Open SakiiR opened 3 years ago
I haven't looked in detail but I suspect a code path uses path, not path/filepath.
I think by the SFTP standards we have to use path
for these files, but we need to decode it with filepath.FromSlash
before trying to actually use the file on the local OS. I think I have a good idea of what to look at, and will take a look.
I’ve got a repo, and I know where to be looking. I’ll keep the issue advised.
Hi,
even if we fix this bug, I suggest to deprecate the server implementation (with a documentation note) and suggest to switch to the request server.
We could also rewrote the server implementation using the request server interfaces but if we do this we must be prepared to answer to several requests (some users want restrict the root dir, others want to restrict the root dir but at the same time follow symlinks outside it and so on).
The request server allows you to configure the desired behavior without implementing all possible use cases directly within the library.
Let me know if https://github.com/pkg/sftp/pull/445 works for you
Just tested with the patched version and looks great ! Nice reaction time (:
Hi,
I am encountering issues while trying to implement an SFTP connection over my SSH session ( handled by
github.com/gliderlabs/ssh
).Here is the snippet I am using to reproduce the bug:
I might be doing something wrong .. However it works perfectly on Linux and OSX !