MCPcopy Create free account
hub / github.com/coreutils/coreutils / change_timestamps

Function change_timestamps

src/install.c:469–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467 Return true if successful. */
468
469static bool
470change_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

Callers 1

install_file_in_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected