| 472 | } |
| 473 | |
| 474 | static int same_mtime(struct file_struct *file, STRUCT_STAT *st, int extra_accuracy) |
| 475 | { |
| 476 | #ifdef ST_MTIME_NSEC |
| 477 | uint32 f1_nsec = F_MOD_NSEC_or_0(file); |
| 478 | uint32 f2_nsec = (uint32)st->ST_MTIME_NSEC; |
| 479 | #else |
| 480 | uint32 f1_nsec = 0, f2_nsec = 0; |
| 481 | #endif |
| 482 | |
| 483 | if (extra_accuracy) /* ignore modify_window when setting the time after a transfer or checksum check */ |
| 484 | return file->modtime == st->st_mtime && f1_nsec == f2_nsec; |
| 485 | |
| 486 | return same_time(file->modtime, f1_nsec, st->st_mtime , f2_nsec); |
| 487 | } |
| 488 | |
| 489 | int set_file_attrs(const char *fname, struct file_struct *file, stat_x *sxp, |
| 490 | const char *fnamecmp, int flags) |
no test coverage detected