Skip Menu |

This queue is for tickets about the Net-OpenSSH CPAN distribution.

Report information
The Basics
Id: 89374
Status: resolved
Worked: 30 min
Priority: 0/
Queue: Net-OpenSSH

People
Owner: Nobody in particular
Requestors: sunguonian [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.60
Fixed in: (no value)



Subject: rsync_put with copy_attr don't preserve modification time
when I use rsync_put({copy_attr => 1}, ...), it modify the target file's modification time. and scp_put() is OK. since rsync's option -p only for perm of file, so maybe add -t for it. $ diff OpenSSH.pm_old OpenSSH.pm 2066c2066 < push @opts, '-p' if $copy_attrs; --- Show quoted text
> push @opts, '-p', '-t' if $copy_attrs;
Net-OpenSSH-0.60 v5.10.1 for x86_64 2.6.32-358.18.1.el6.x86_64
On Wed Oct 09 22:52:47 2013, diancn wrote: Show quoted text
> when I use rsync_put({copy_attr => 1}, ...), it modify the target > file's modification time. and scp_put() is OK. > > since rsync's option -p only for perm of file, so maybe add -t for it.
I have uploaded version 0.61_12 to CPAN which should solve your issue: https://metacpan.org/release/SALVA/Net-OpenSSH-0.61_12 Thank you for reporting the bug and the fix!