Re: undesirable behaviour when copying to sshfs/sftp hosts
Ben Morrow <[email protected]> Thu, 2 Aug 2012 22:13:11 +0100
| Newsgroups | gmane.comp.desktop.rox.devel |
|---|---|
| Message-ID | <[email protected]> |
At 1PM +1000 on 2/08/12 Jared Henley wrote:
> Here's a patch to change the invocation of cp:
>
> 596c596
> < const char *argv[] = {"cp", "-pRf", NULL, NULL, NULL};
> ---
> > const char *argv[] = {"cp", "-Rf", "--preserve=mode,timestamps",
> NULL, NULL, NULL};
Please don't do that without a configure check. Those options to cp are
not portable.
A better solution would be to make this an option, possibly even a
option that can be changed per-copy from the copy dialog.
Ben
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/