Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overwriting from one window to another (same computer with different domain) zeros out files #12717

Open
mstahv opened this issue Dec 27, 2021 · 1 comment
Assignees
Labels
bug sftp SFTP Protocol Implementation

Comments

@mstahv
Copy link

mstahv commented Dec 27, 2021

I had two windows open, both targeting to same machine:

ssh user@foo.bar:/dir/file
ssh user@foo.baz:
/dir/file

When I copied file over the other, it was truncated to 0 bytes. As I though the other window was to a third machine, this was rather severe for me, I lost the file contents for ever 👎

@dkocher dkocher added the bug label Dec 28, 2021
@dkocher dkocher self-assigned this Dec 28, 2021
@dkocher dkocher added the sftp SFTP Protocol Implementation label Dec 29, 2021
@dkocher
Copy link
Contributor

dkocher commented Dec 29, 2021

This will possibly only apply to protocols such as FTP and SFTP that read and write directly to the underlying file system on the server but not to WebDAV or object storage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug sftp SFTP Protocol Implementation
Projects
None yet
Development

No branches or pull requests

2 participants