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)

patch for lib/dpkg/tarfn.c

  • lib/dpkg/tarfn.c

    old new  
    4040#define TAR_MAGIC_USTAR "ustar\0" "00"
    4141#define TAR_MAGIC_GNU   "ustar "  " \0"
    4242
     43static const char ustarMagic[] = { 'u', 's', 't', 'a', 'r', '\0', '0', '0', '\0' };
     44static const char gnutarMagic[] = { 'u', 's', 't', 'a', 'r', ' ', ' ', '\0' };
     45
    4346struct tar_header {
    4447        char name[100];
    4548        char mode[8];
     
    5154        char linkflag;
    5255        char linkname[100];
    5356        char magic[8];
     57    char MagicNumber[8]; /* POSIX: "ustar\000", GNU: "ustar  \0" (blank blank null) */
    5458        char user[32];
    5559        char group[32];
    5660        char devmajor[8];
     
    5862
    5963        /* Only valid on ustar. */
    6064        char prefix[155];
     65    char Prefix[155]; /* POSIX ustar header */
    6166};
    6267
    6368/**