sync
This commit is contained in:
parent
3751effe59
commit
29ec20d7b2
33 changed files with 213 additions and 288 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: tar.c,v 1.70 2022/03/01 21:19:11 sthen Exp $ */
|
||||
/* $OpenBSD: tar.c,v 1.71 2023/06/26 18:00:59 millert Exp $ */
|
||||
/* $NetBSD: tar.c,v 1.5 1995/03/21 09:07:49 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
|
@ -411,7 +411,7 @@ tar_rd(ARCHD *arcn, char *buf)
|
|||
arcn->sb.st_size = (off_t)asc_ull(hd->size, sizeof(hd->size), OCT);
|
||||
val = asc_ull(hd->mtime, sizeof(hd->mtime), OCT);
|
||||
if (val > MAX_TIME_T)
|
||||
arcn->sb.st_mtime = INT_MAX; /* XXX 2038 */
|
||||
arcn->sb.st_mtime = MAX_TIME_T;
|
||||
else
|
||||
arcn->sb.st_mtime = val;
|
||||
arcn->sb.st_ctime = arcn->sb.st_atime = arcn->sb.st_mtime;
|
||||
|
@ -788,7 +788,7 @@ reset:
|
|||
if (arcn->sb.st_mtime == 0) {
|
||||
val = asc_ull(hd->mtime, sizeof(hd->mtime), OCT);
|
||||
if (val > MAX_TIME_T)
|
||||
arcn->sb.st_mtime = INT_MAX; /* XXX 2038 */
|
||||
arcn->sb.st_mtime = MAX_TIME_T;
|
||||
else
|
||||
arcn->sb.st_mtime = val;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue