![]() ![]() | ![]() |
version 1.99, 2015/03/19 21:22:15 | version 1.100, 2016/01/26 18:02:51 | ||
---|---|---|---|
|
|
||
} | } | ||
serrno = errno; | serrno = errno; | ||
(void) fchmod(to, (sb.st_mode & 0777)); | (void) fchmod(to, (sb.st_mode & 0777)); | ||
/* copy the mtime to the backupfile */ | |||
struct timespec new_times[2]; | |||
new_times[0] = sb.st_atim; | |||
new_times[1] = sb.st_mtim; | |||
futimens(to, new_times); | |||
close(from); | close(from); | ||
close(to); | close(to); | ||
if (nread == -1) { | if (nread == -1) { |