lassik / mergedotnet

GUI-based N-way file sync program that does SFTP
Other
0 stars 0 forks source link

Permission denied when trying to delete a symlink over SFTP #23

Open lassik opened 10 years ago

lassik commented 10 years ago

How to reproduce:

  1. Make a directory bugtest on one Windows and one OSX host.
  2. Make a subdirectory bar on both hosts.
  3. Make a symlink foo that points to bar on the OSX host (ln -s bar foo)
  4. On the Windows host, open Merge and add a local connection to the local bugtest directory and a SFTP connection to OSX host's bugtest directory.
  5. Press Analyze. The treeview shows a single entry, foo, as type None/Other. bar is not shown.
  6. Decide the local Windows connection (type None) to be the winner for foo.
  7. Press Merge.
  8. The operations window comes up with a single operation in the list: B DeleteFile /foo
  9. Press Perform

Observed bug: Though the "All done!" dialog pops up, the following error has appeared in the error log box of the operations window:

Error B DeleteFile /foo: Renci.SshNet.Common.SftpPermissionDeniedException: Permission denied

Checking on the OSX machine confirms that the symlink foo is intact in the file system.

Expected behavior: There should be no error in the error log, and the symlink foo should have disappeared on the OSX host. (The directory bar that the symlink pointed to should still remain intact.)