diff options
| author | Matthew Dillon <dillon@FreeBSD.org> | 2001-10-28 02:51:43 +0000 |
|---|---|---|
| committer | Matthew Dillon <dillon@FreeBSD.org> | 2001-10-28 02:51:43 +0000 |
| commit | dbd9746f717d9fc0c07689ebf8401aecafcdaa7f (patch) | |
| tree | 6c6176f5643bfb9cd2f87131035bb1a9df33359f | |
| parent | 2ad45bbe3dcf59e0d9d802df0d15cd65df563920 (diff) | |
Notes
| -rw-r--r-- | bin/pax/tar.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/pax/tar.c b/bin/pax/tar.c index 541b450f894b..5927db1b49f8 100644 --- a/bin/pax/tar.c +++ b/bin/pax/tar.c @@ -461,10 +461,11 @@ tar_rd(arcn, buf) arcn->sb.st_gid = (gid_t)asc_ul(hd->gid, sizeof(hd->gid), OCT); #ifdef NET2_STAT arcn->sb.st_size = (off_t)asc_ul(hd->size, sizeof(hd->size), OCT); + arcn->sb.st_mtime = (time_t)asc_ul(hd->mtime, sizeof(hd->mtime), OCT); #else arcn->sb.st_size = (off_t)asc_uqd(hd->size, sizeof(hd->size), OCT); + arcn->sb.st_mtime = (time_t)asc_uqd(hd->mtime, sizeof(hd->mtime), OCT); #endif - arcn->sb.st_mtime = (time_t)asc_ul(hd->mtime, sizeof(hd->mtime), OCT); arcn->sb.st_ctime = arcn->sb.st_atime = arcn->sb.st_mtime; /* @@ -860,10 +861,11 @@ ustar_rd(arcn, buf) 0xfff); #ifdef NET2_STAT arcn->sb.st_size = (off_t)asc_ul(hd->size, sizeof(hd->size), OCT); + arcn->sb.st_mtime = (time_t)asc_ul(hd->mtime, sizeof(hd->mtime), OCT); #else arcn->sb.st_size = (off_t)asc_uqd(hd->size, sizeof(hd->size), OCT); + arcn->sb.st_mtime = (time_t)asc_uqd(hd->mtime, sizeof(hd->mtime), OCT); #endif - arcn->sb.st_mtime = (time_t)asc_ul(hd->mtime, sizeof(hd->mtime), OCT); arcn->sb.st_ctime = arcn->sb.st_atime = arcn->sb.st_mtime; /* |
