[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sftp_utimes() uses wrong subsecond unit
[Thread Prev] | [Thread Next]
- Subject: sftp_utimes() uses wrong subsecond unit
- From: Tilo Eckert <tilo.eckert@xxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Tue, 25 Aug 2015 16:37:02 +0200
- To: libssh@xxxxxxxxxx
Hi, I think the subsecond handling in sftp_utimes() is wrong. It takes two "struct timeval" as parameter which contain the tv_usec field. That field is in microseconds. However, all the Xtime_nseconds fields of sftp_attributes_struct are in nanoseconds. Hence, a multiplication by 1000 is missing. Regards Tilo
Archive administrator: postmaster@lists.cynapses.org