Skip to content

Commit 95049b6

Browse files
committedAug 16, 2017
Include size in PAX extended header
bsdtar does not properly handle the base-256 encoded xstar size value. Fixes #131
1 parent 2176335 commit 95049b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎lib/write-entry.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ const WriteEntry = warner(class WriteEntry extends MiniPass {
127127
mtime: this.header.mtime,
128128
path: this.path,
129129
linkpath: this.linkpath,
130-
size: this.size,
130+
size: this.header.size,
131131
uid: this.portable ? null : this.header.uid,
132132
uname: this.portable ? null : this.header.uname,
133133
dev: this.portable ? null : this.stat.dev,

‎test/write-entry.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ t.test('portable entries, nothing platform-specific', t => {
690690
gname: null,
691691
linkpath: null,
692692
path: 'long-path/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r/-/p/a/t/h/Ω.txt',
693-
size: null,
693+
size: 2,
694694
uid: null,
695695
uname: null,
696696
dev: null,

0 commit comments

Comments
 (0)
Please sign in to comment.