diff options
author | dillon <dillon@FreeBSD.org> | 2001-10-28 02:51:43 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2001-10-28 02:51:43 +0000 |
commit | 4394f0950fa4e30748b050da232d8619c334fd01 (patch) | |
tree | 6c6176f5643bfb9cd2f87131035bb1a9df33359f /bin/pax | |
parent | 6ce5111d955031ec46102b3c55241af72e9fb411 (diff) | |
download | FreeBSD-src-4394f0950fa4e30748b050da232d8619c334fd01.zip FreeBSD-src-4394f0950fa4e30748b050da232d8619c334fd01.tar.gz |
Use a quad int conversion routine for time_t instead of ulong, capable of
decoding tar's full time buffer (12 digits).
Diffstat (limited to 'bin/pax')
-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 541b450..5927db1 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; /* |