@@ -91,7 +91,8 @@ export class Header implements HeaderData {
9191 this . uid = ex ?. uid ?? gex ?. uid ?? decNumber ( buf , off + 108 , 8 )
9292 this . gid = ex ?. gid ?? gex ?. gid ?? decNumber ( buf , off + 116 , 8 )
9393 this . size = ex ?. size ?? gex ?. size ?? decNumber ( buf , off + 124 , 12 )
94- this . mtime = ex ?. mtime ?? gex ?. mtime ?? decDate ( buf , off + 136 , 12 )
94+ this . mtime =
95+ ex ?. mtime ?? gex ?. mtime ?? decDate ( buf , off + 136 , 12 )
9596 this . cksum = decNumber ( buf , off + 148 , 12 )
9697
9798 // if we have extended or global extended headers, apply them now
@@ -124,10 +125,14 @@ export class Header implements HeaderData {
124125 'ustar\u000000'
125126 ) {
126127 /* c8 ignore start */
127- this . uname = ex ?. uname ?? gex ?. uname ?? decString ( buf , off + 265 , 32 )
128- this . gname = ex ?. gname ?? gex ?. gname ?? decString ( buf , off + 297 , 32 )
129- this . devmaj = ex ?. devmaj ?? gex ?. devmaj ?? decNumber ( buf , off + 329 , 8 ) ?? 0
130- this . devmin = ex ?. devmin ?? gex ?. devmin ?? decNumber ( buf , off + 337 , 8 ) ?? 0
128+ this . uname =
129+ ex ?. uname ?? gex ?. uname ?? decString ( buf , off + 265 , 32 )
130+ this . gname =
131+ ex ?. gname ?? gex ?. gname ?? decString ( buf , off + 297 , 32 )
132+ this . devmaj =
133+ ex ?. devmaj ?? gex ?. devmaj ?? decNumber ( buf , off + 329 , 8 ) ?? 0
134+ this . devmin =
135+ ex ?. devmin ?? gex ?. devmin ?? decNumber ( buf , off + 337 , 8 ) ?? 0
131136 /* c8 ignore stop */
132137 if ( buf [ off + 475 ] !== 0 ) {
133138 // definitely a prefix, definitely >130 chars.
@@ -139,8 +144,10 @@ export class Header implements HeaderData {
139144 this . path = prefix + '/' + this . path
140145 }
141146 /* c8 ignore start */
142- this . atime = ex ?. atime ?? gex ?. atime ?? decDate ( buf , off + 476 , 12 )
143- this . ctime = ex ?. ctime ?? gex ?. ctime ?? decDate ( buf , off + 488 , 12 )
147+ this . atime =
148+ ex ?. atime ?? gex ?. atime ?? decDate ( buf , off + 476 , 12 )
149+ this . ctime =
150+ ex ?. ctime ?? gex ?. ctime ?? decDate ( buf , off + 488 , 12 )
144151 /* c8 ignore stop */
145152 }
146153 }
0 commit comments