* tar.c (LF_EXTHDR): New macro definition.
(LF_GLOBAL_EXTHDR): Likewise. (tar_read_header): Skip over pax extended header and global extended header records.
Этот коммит содержится в:
родитель
c5800b05f3
Коммит
465972e0b9
@ -1,3 +1,8 @@
|
||||
2006-01-18 Pavel Tsekov <ptsekov@gmx.net>
|
||||
|
||||
* tar.c (tar_read_header): Skip over pax extended header and
|
||||
global extended header records.
|
||||
|
||||
2005-11-15 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* samba/lib/netmask.c: Include <stdlib.h> for exit() and
|
||||
|
10
vfs/tar.c
10
vfs/tar.c
@ -117,6 +117,8 @@ union record {
|
||||
#define LF_DIR '5' /* Directory */
|
||||
#define LF_FIFO '6' /* FIFO special file */
|
||||
#define LF_CONTIG '7' /* Contiguous file */
|
||||
#define LF_EXTHDR 'x' /* pax Extended Header */
|
||||
#define LF_GLOBAL_EXTHDR 'g' /* pax Global Extended Header */
|
||||
/* Further link types may be defined later. */
|
||||
|
||||
/* Note that the standards committee allows only capital A through
|
||||
@ -427,6 +429,14 @@ tar_read_header (struct vfs_class *me, struct vfs_s_super *archive,
|
||||
if (header->header.linkflag == LF_DUMPDIR)
|
||||
return STATUS_SUCCESS;
|
||||
|
||||
/*
|
||||
* Skip over pax extended header and global extended
|
||||
* header records.
|
||||
*/
|
||||
if (header->header.linkflag == LF_EXTHDR ||
|
||||
header->header.linkflag == LF_GLOBAL_EXTHDR)
|
||||
return STATUS_SUCCESS;
|
||||
|
||||
if (header->header.linkflag == LF_LONGNAME
|
||||
|| header->header.linkflag == LF_LONGLINK) {
|
||||
char **longp;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user