Ticket #39018: patch-lib_dpkg_tarfn.c.diff
File patch-lib_dpkg_tarfn.c.diff, 787 bytes (added by cooljeanius (Eric Gallager), 11 years ago) |
---|
-
lib/dpkg/tarfn.c
old new 40 40 #define TAR_MAGIC_USTAR "ustar\0" "00" 41 41 #define TAR_MAGIC_GNU "ustar " " \0" 42 42 43 static const char ustarMagic[] = { 'u', 's', 't', 'a', 'r', '\0', '0', '0', '\0' }; 44 static const char gnutarMagic[] = { 'u', 's', 't', 'a', 'r', ' ', ' ', '\0' }; 45 43 46 struct tar_header { 44 47 char name[100]; 45 48 char mode[8]; … … 51 54 char linkflag; 52 55 char linkname[100]; 53 56 char magic[8]; 57 char MagicNumber[8]; /* POSIX: "ustar\000", GNU: "ustar \0" (blank blank null) */ 54 58 char user[32]; 55 59 char group[32]; 56 60 char devmajor[8]; … … 58 62 59 63 /* Only valid on ustar. */ 60 64 char prefix[155]; 65 char Prefix[155]; /* POSIX ustar header */ 61 66 }; 62 67 63 68 /**