| 467 | Return true if successful. */ |
| 468 | |
| 469 | static bool |
| 470 | change_timestamps (struct stat const *src_sb, char const *dest, |
| 471 | int dirfd, char const *relname) |
| 472 | { |
| 473 | struct timespec timespec[2] = { get_stat_atime (src_sb), |
| 474 | get_stat_mtime (src_sb) }; |
| 475 | |
| 476 | if (utimensat (dirfd, relname, timespec, 0)) |
| 477 | { |
| 478 | error (0, errno, _("cannot set timestamps for %s"), quoteaf (dest)); |
| 479 | return false; |
| 480 | } |
| 481 | return true; |
| 482 | } |
| 483 | |
| 484 | /* Strip the symbol table from the file NAME. |
| 485 | We could dig the magic number out of the file first to |
no outgoing calls
no test coverage detected