trucnguyenlam / win-sshfs

Automatically exported from code.google.com/p/win-sshfs
0 stars 0 forks source link

Add workaround for sftp3 rename #88

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a new win-sshfs connection to a open-ssh server using sftp protocol 3
2. Rename a file to an already existing file
3. Get error

What is the expected output? What do you see instead?
The file should be copied over top of the existing file without error

sshfs has a workaround that can be applied to get this behavior (see 
sshfs.rename_workaround): 
http://sourceforge.net/p/fuse/sshfs/ci/sshfs_2_4/tree/sshfs.c#l2171

I think the fix would go here:
https://github.com/apaka/win-sshfs/blob/750123c43065582fb79e504f89e4ee6c25dd03b6
/Renci.SshNet/Sftp/SftpSession.cs#L854

What version of the product are you using?

win-sshfs: 0.0.1.5
Client OS: Windows 7
Server OS: RHEL5
Ssh server: OpenSSH_4.3p2

Original issue reported on code.google.com by montana....@gmail.com on 3 Dec 2013 at 11:59

GoogleCodeExporter commented 9 years ago
http://sourceforge.net/apps/mediawiki/fuse/?title=SshfsFaq#Why_does_SVN_.28etc..
..29_fail_to_rename_files.3F
talks about it a bit.

Original comment by montana....@gmail.com on 4 Dec 2013 at 12:11