Skip to content
Commit 28e5ef83 authored by Max Maisel's avatar Max Maisel Committed by Ondrej Holy
Browse files

sftp: Add support for setting timestamps

Implement set time::modified and time::access in function
try_set_attribute. The SFTP protocol limitation that atime and
mtime must be set simultaneously is overcome by stating the
file and perform a read-modify-write operation. Therefore the
new callback function set_attribute_stat_reply is added.
Furthermore time::modifed and time::access are added to
try_query_settable_attributes.

This patch makes 'rsync -t' and 'touch' utilities
work over gvfsd-sftp.

https://bugzilla.gnome.org/show_bug.cgi?id=527339
parent e4174879
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment