GNOME Bugzilla – Bug 730844
smb and sftp backends don't handle errors in set_attribute()
Last modified: 2014-05-30 06:10:53 UTC
If the type is incorrect, the call to update attributes is executed anyway.
Created attachment 277329 [details] [review] sftp: Fail properly if set_attribute type is wrong If given an invalid type when setting unix::mode in try_set_attribute, don't try and change the mode after failing the job.
Created attachment 277330 [details] [review] smb: Fail properly if set_attribute type is wrong If given an invalid type when setting time::modified in do_set_attribute, don't try and change the mtime after failing the job.
Review of attachment 277329 [details] [review]: Looks good, thanks!
Review of attachment 277330 [details] [review]: It looks good either, thanks!
Pushed to master as a2c0a48 and gnome-3-12 as 41ee387. Thanks for the reviews.