| 95 |
{ "path", path_coder, path_decoder }, |
{ "path", path_coder, path_decoder }, |
| 96 |
{ "size", size_coder, size_decoder }, |
{ "size", size_coder, size_decoder }, |
| 97 |
{ "uid", uid_coder, uid_decoder }, |
{ "uid", uid_coder, uid_decoder }, |
| 98 |
{ "uname", uname_coder, uname_decoder }, |
{ "uname", uname_coder, uname_decoder }, |
| 99 |
|
#if 0 /* GNU private keywords (not yet implemented) */ |
| 100 |
|
/* Sparse file handling */ |
| 101 |
|
{ "GNU.sparse.offset", sparse_offset_coder, sparse_offset_decoder }, |
| 102 |
|
{ "GNU.sparse.numbytes", sparse_numbytes_coder, sparse_numbytes_decoder }, |
| 103 |
|
|
| 104 |
|
/* The next directory entry actually contains the names of files that were |
| 105 |
|
in the directory at the time the dump was made. Supersedes |
| 106 |
|
GNUTYPE_DUMPDIR header type */ |
| 107 |
|
{ "GNU.dumpdir", dumpdir_coder, dumpdir_decoder }, |
| 108 |
|
|
| 109 |
|
/* Keeps the tape/volume header. May be present only in the global headers. |
| 110 |
|
Equivalent to GNUTYPE_VOLHDR */ |
| 111 |
|
{ "GNU.volume.header", volume_header_coder, volume_header_decoder }, |
| 112 |
|
|
| 113 |
|
/* These may be present in a first global header of the archive. They |
| 114 |
|
provide the same functionality as GNUTYPE_MULTIVOL header. |
| 115 |
|
The GNU.volume.size keeps the real_s_sizeleft value (which is |
| 116 |
|
otherwise kept in the size field of a multivolume header). |
| 117 |
|
The GNU.volume.offset keeps the offset of the start of this |
| 118 |
|
volume (otherwise kept in oldgnu_header.offset */ |
| 119 |
|
{ "GNU.volume.size", volume_size_coder, volume_size_decoder }, |
| 120 |
|
{ "GNU.volume.offset", volume_offset_coder, volume_offset_decoder }, |
| 121 |
|
#endif |
| 122 |
{ NULL }, |
{ NULL }, |
| 123 |
}; |
}; |
| 124 |
|
|
| 428 |
static void |
static void |
| 429 |
path_coder (struct tar_stat_info *st, char *keyword, struct xheader *xhdr) |
path_coder (struct tar_stat_info *st, char *keyword, struct xheader *xhdr) |
| 430 |
{ |
{ |
| 431 |
code_string (st->orig_file_name, keyword, xhdr); |
code_string (st->file_name, keyword, xhdr); |
| 432 |
} |
} |
| 433 |
|
|
| 434 |
static void |
static void |