https://bugzilla.mindrot.org/show_bug.cgi?id=2067
Bug ID: 2067
Summary: lsetstat extension to sftp-server
Classification: Unclassified
Product: Portable OpenSSH
Version: 6.1p1
Hardware: Other
OS: Other
Status: NEW
Severity: enhancement
Priority: P5
Component: sftp-server
Assignee: [email protected]
Reporter: [email protected]
Created attachment 2212
--> https://bugzilla.mindrot.org/attachment.cgi?id=2212&action=edit
Patch for sftp-server to add lsetstat extension
At the moment sftp is not able to set timestamps on symlinks.
In order to make this possible lsetstat needs to be implemented.
Attached patch makes this addition.
Some background info. I want to run dirvish over sshfs in order to make
daily remote snapshot-backups. Currently rsync (which is used by
dirvish) reports an error when updating the timestamp of a symlink.
This in turn makes dirvish abort the backup.
In cooperation with Miklos Szeredi, the author of sshfs, I have created
attached patch. He has created the functionality in sshfs to make use
of this lsetstat extenstion in sftp. I've used this patch for 5 months
now and it behaves perfectly. Dirvish creates complete backups every
day now.
I have also created a patch for the sftp client-side to implement a
"touch [-h]" command. This command makes it possible to update the
utime of a symlink. It was mostly used to test above functionality, but
will be handy in more cases. I will add this patch here too.
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs