This implementation follows the default policy in 48 of 134 cases:
The default policy is a working draft. Where an implementation does not do as it says, that can be a choice rather than a bug.
On the other 86, it does not:
| case | what it is | what it makes of it |
|---|---|---|
F59 pax-nul-in-xattr | A NUL in the value of a pax xattr, before a path record. | embedded nul in string: '27 SCHILY.xattr.user.a=x\0y\n16 path=renamed\n' |
N46 pax-linkpath-linkname-empty | A symlink with an empty linkname field and a pax linkpath. | argument must be coercible to non-negative integer Warning message: In max(which(block[158:257] > 0)) : no non-missing arguments to max; returning -Inf |
F13 pax-newline-in-path | A newline in a pax path, which split on lines is another record. | the condition has length > 1 |
F21 pax-size-empty | An empty pax size, which in POSIX removes the size rather than giving one. | argument must be coercible to non-negative integer |
F22 pax-size-negative | A negative pax size, which a member cannot have. | argument must be coercible to non-negative integer |
F25 pax-size-not-ascii-digits | A pax size in Arabic-Indic digits, ٥١٢, which some conversions of strings read as 512. | argument must be coercible to non-negative integer Warning message: In untar2(tarfile, files, list, exdir, restore_times, allow_all) : NAs introduced by coercion |
F27 pax-size-too-large | A pax size of 2^64 + 512, which wraps around to 512 in 64 bits. | argument must be coercible to non-negative integer Warning message: In untar2(tarfile, files, list, exdir, restore_times, allow_all) : NAs introduced by coercion to integer range |
F50 pax-size-underscore | A pax size with an underscore, 5_12, which some conversions of strings to numbers accept. | argument must be coercible to non-negative integer Warning message: In untar2(tarfile, files, list, exdir, restore_times, allow_all) : NAs introduced by coercion |
N11 gnu-prefix-field | The prefix field of a header with GNU magic, which GNU tar uses for times in incremental archives. | embedded nul in string: '15000000000\015000000000' |
N14 name-bytes-after-nul | Bytes after the NUL that ends a name. | embedded nul in string: 'a\0b' |
N19 pax-nul-in-path | A NUL inside a pax path. | embedded nul in string: '12 path=a\0b\n' |
N20 pax-repeated-key | One pax key twice in one extended header. | the condition has length > 1 |
N25 symlink-empty-target | A symlink with an empty target. | argument must be coercible to non-negative integer Warning message: In max(which(block[158:257] > 0)) : no non-missing arguments to max; returning -Inf |
N38 gnu-long-name-empty | An empty GNU long name: the name in the header, or none? | argument must be coercible to non-negative integer Warning message: In max(which(block > 0)) : no non-missing arguments to max; returning -Inf |
S13 hardlink-empty-target | A hardlink with an empty target. | argument must be coercible to non-negative integer Warning message: In max(which(block[158:257] > 0)) : no non-missing arguments to max; returning -Inf |
| case | what it is | what it makes of it |
|---|---|---|
F03 end-lone-zero-block | An end-of-archive marker of one zero block, not two. | extracts a (2 B, 87428fc5) |
F06 checksum-signed | A checksum that only matches as the signed sum of the header. | extracts a (2 B, 87428fc5) |
F07 end-archive-after | Another archive after the end-of-archive marker. | extracts a (2 B, 87428fc5) |
F09 end-zero-block-then-member | A zero block, then another member: the end of the archive, or not? | extracts a (2 B, 87428fc5) |
F10 extended-pax-size-before-gnu-long | A pax size followed by a GNU long name: which of them does the size apply to? | extracts long-name (512 B, 917dba8e) |
F11 magic-odd-version | The POSIX magic with a version that is neither "00" nor NULs. | extracts a (2 B, 87428fc5) |
F12 number-size-gap | A size with a space among its digits, which reads as two sizes. | extracts a (512 B, 917dba8e) |
F15 pax-size-on-dir | A pax size on a directory, which takes the next header for its data. | extracts dir/, dir/smuggled (512 B, 076a27c7) |
F19 pax-global-between-extended-and-member | A global pax header between an extended header and its member. | extracts from-pax (12 B, a578eb49) |
F20 pax-global-size | A global pax header with a size, which frames every member after it, or none. | extracts a (0 B, e3b0c442), smuggled (0 B, e3b0c442) |
F23 pax-size-plus | A pax size with a plus sign, +512, which conversions of strings to numbers accept. | extracts a (512 B, 917dba8e) |
F24 pax-size-leading-space | A pax size with a leading space, 512, which conversions of strings to numbers skip. | extracts a (512 B, 917dba8e) |
F26 pax-size-leading-zero | A pax size with a leading zero, 0777: 777 in decimal, as POSIX says, or 511 in octal. | extracts a (777 B, b09d2516) |
F33 size-on-dir | A size in the header of a directory, which takes the next header for its data. | extracts dir/, dir/smuggled (0 B, e3b0c442) |
F34 size-on-hardlink | A size in the header of a hardlink, in a pax archive, which takes the next header for its data. | extracts a (2 B, 87428fc5), h (2 B, 87428fc5), smuggled (0 B, e3b0c442) |
F35 pax-size-on-hardlink | A pax size on a hardlink, which takes the next header for its data. | extracts a (2 B, 87428fc5), h (2 B, 87428fc5), smuggled (512 B, 076a27c7) |
F36 pax-record-length-short | A pax record whose length is one byte short, so that it ends just before its newline. | extracts from-pax (12 B, a578eb49) |
F38 size-on-hardlink-without-pax | A size in the header of a hardlink, in an archive without pax headers: ustar or pax? | extracts a (2 B, 87428fc5), h (2 B, 87428fc5), smuggled (0 B, e3b0c442) |
F39 format-pax-after-v7 | A v7 header first, then a member with a pax header: is the x header a header, or a file? | extracts a (2 B, 87428fc5), from-pax (12 B, a578eb49) |
F40 number-size-no-terminator | A size of 12 octal digits, without a terminator. | extracts a (10 B, 84d89877) |
F41 number-size-leading-nul | A size with a NUL before its digits, which takes the next header for its data. | extracts a (0 B, e3b0c442), smuggled (0 B, e3b0c442) |
F44 pax-global-size-empty | An empty size in a global pax header: does it delete the size of every later member, or set it? | extracts a (512 B, 917dba8e) |
F47 checksum-wrong-after-first-member | A header with a wrong checksum after the first member: the end, a block to skip, or a header? | extracts a (2 B, 87428fc5), b (512 B, 917dba8e), c (2 B, a3a5e715) |
F48 pax-record-length-plus | A pax record whose length has a plus sign, +17. | extracts +renamed (12 B, a578eb49) |
F49 pax-record-empty-line | An empty line between two pax records. | extracts renamed (12 B, a578eb49) |
F54 format-pax-header-without-magic | A pax extended header without magic: a header, or a file? | extracts renamed (12 B, a578eb49) |
N48 magic-gnu-version-00 | A prefix in a header with the magic "ustar " and the version "00": part of the name, or not? | extracts p/, p/a (2 B, 87428fc5) |
N08 extended-pax-path-and-gnu-long-name | A pax path and a GNU long name for one member, and a third name in its header. | extracts from-pax (12 B, a578eb49) |
N09 extended-two-pax-headers | Two pax extended headers for one member, with different paths. | extracts second (12 B, a578eb49) |
N10 format-star | A ustar prefix whose end reads as star's times, with star's tar\0 at offset 508. | extracts ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp15000000000 15000000000 /, ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp15000000000 15000000000 /a (2 B, 87428fc5) |
N12 name-absolute | An absolute name, which points outside the directory the archive is extracted to. | extracts tmp/, tmp/tar-minefield-absolute (89 B, 3b7f22a5) |
N13 name-backslash | A backslash in a name: a character on Unix, a separator on Windows. | extracts a\b (21 B, 15acfc39) |
N18 name-not-utf8 | A name that is not UTF-8. | extracts caf\xe9 (8 B, ff3f1fa3) |
N21 pax-global-path | A global pax header with a path. | extracts a (2 B, 87428fc5), b (2 B, 02638299) |
N23 extended-gnu-long-then-pax | A GNU long name, then a pax header, then the member: which of them does the long name apply to? | extracts from-gnu (12 B, a578eb49) |
N24 pax-hdrcharset-binary | A pax path that is not UTF-8, declared as bytes with hdrcharset=BINARY. | extracts cafe (12 B, a578eb49) |
N26 pax-global-path-then-empty | A global path, then a global header that removes it with an empty value. | extracts a (12 B, a578eb49) |
N29 extended-pax-path-before-gnu-long-name | A pax path, then a GNU long name, then the member: which name does it get? | extracts from-gnu (12 B, a578eb49) |
N30 name-drive-letter | A name that starts with a drive letter, C:/drive-letter. | extracts C:/, C:/drive-letter (35 B, 1f39eb72) |
N31 pax-linkpath-not-utf8 | A pax linkpath that is not UTF-8. | extracts link → from-header |
N32 linkname-not-utf8 | A symlink whose target in the header is not UTF-8. | extracts link → caf\xe9 |
N36 pax-gnu-sparse | A sparse file in GNU's pax format 1.0: the data as stored, or the file it expands to? | extracts GNUSparseFile.0/, GNUSparseFile.0/a (514 B, efc6219f) |
N37 extended-two-gnu-long-names | Two GNU long names for one member: the first, the last, or the header's? | extracts second (12 B, a578eb49) |
N39 gnu-long-name-size-without-nul | A GNU long name whose size leaves out its NUL, with bytes after it. | extracts name-rest (12 B, a578eb49) |
N40 pax-global-linkpath | A global pax header with a linkpath. | extracts l → header-target-l, m → header-target-m |
N41 pax-gnu-sparse-name | A pax GNU.sparse.name on a file that is not sparse, after a path. | extracts path-name (12 B, a578eb49) |
F60 trailing-slash-file-with-size | A regular file a/ with a size: a directory without data, or a file with data? | extracts a (512 B, 917dba8e), b (2 B, 02638299) |
K01 kind-trailing-slash-file | A regular file whose name ends in a slash: a file, or a directory? | extracts a (0 B, e3b0c442) |
K02 linkname-on-file | A regular file with a link target. | extracts a (19 B, bc345849) |
K03 symlink-trailing-slash | A symlink whose name ends in a slash. | extracts link → target, target/ |
K04 name-empty-with-prefix | A regular file with an empty name and a prefix: dir/, or no name? | extracts dir (0 B, e3b0c442) |
K05 hardlink-trailing-slash | A hardlink whose name ends in a slash: a link, or a directory? | extracts a (2 B, 87428fc5), b (2 B, 87428fc5) |
S03 hardlink-missing-target | A hardlink to a member that is not in the archive. | extracts nothing |
S04 hardlink-to-itself | A hardlink to itself. | extracts nothing |
S05 hardlink-to-later-member | A hardlink to a member that comes later. | extracts f (2 B, 092fcfbb) |
S06 hardlink-to-symlink | A hardlink to a symlink: a link to the symlink, or to its target? | extracts f (2 B, 092fcfbb), h → f, s → f |
S07 tree-duplicate-file-differs | The same file twice, with different contents: the first copy, or the last? | extracts a (5 B, 761d1fb1) |
S08 tree-duplicate-file-dir | A file, then a directory of the same name. | extracts a/ |
S09 tree-duplicate-file-identical | The same file twice, with the same contents. | extracts a (5 B, a6328afc) |
S10 tree-symlink-then-file | A symlink, then a file of the same name: replace the link, or write through it? | extracts a (28 B, d5a04bbb) |
S14 tree-symlink-then-dir | A symlink to a directory, then a directory of the same name. | extracts a/, target/ |
S15 tree-file-then-hardlink | A file, then a hardlink of the same name to another file. | extracts a (2 B, 02638299), b (2 B, 02638299) |
S17 hardlink-then-file-again | A file, a hardlink to it, then the file again: does the link keep the first contents? | extracts a (7 B, 480c2336), b (6 B, b640e840) |
S18 hardlink-absolute | A hardlink to /etc/passwd, in an archive with a member etc/passwd. | extracts etc/, etc/passwd (22 B, cf754f09), l (3713 B, 4a18481b) |
| case | what it is | what it makes of it |
|---|---|---|
F28 pax-newline-in-comment | A newline in a pax comment, which split on lines leaves a size record. | extracts a (512 B, 917dba8e) |
F57 pax-newline-in-comment-path | A newline in a pax comment, which split on lines leaves a path record. | extracts smuggled (2 B, 87428fc5) |
F58 pax-newline-in-comment-then-size | A newline in a pax comment, which split on lines leaves a size record before the last one. | extracts a (0 B, e3b0c442), smuggled (0 B, e3b0c442) |
N42 gnu-long-name-dir | A directory with a long name in a GNU long name, then a file. | extracts dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd/, dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd (2 B, 87428fc5) |
N43 pax-long-dir | A directory with a long name in a pax path, then a file. | extracts dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd/, dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd (2 B, 87428fc5) |
N44 pax-path-name-empty | A regular file with an empty name field and a pax path. | error: invalid name field in tarball |
N45 gnu-long-name-field-slash | A file with a GNU long name and typeflag NUL, whose name field ends in a slash. | error: unsupported entry type ‘’ |