1 --- rpm-4.4.9/rpmio/macro.c.old 2007-11-10 10:29:08.000000000 +0100
2 +++ rpm-4.4.9/rpmio/macro.c 2007-11-10 10:37:25.000000000 +0100
8 #define rpmError fprintf
9 #define RPMERR_BADSPEC stderr
11 @@ -2106,6 +2107,7 @@ int isCompressed(const char * file, rpmC
14 unsigned char magic[13];
17 *compressed = COMPRESSED_NOT;
19 @@ -2131,6 +2133,11 @@ int isCompressed(const char * file, rpmC
23 + /* Tar archives will be recognized by filename. */
24 + end = strchr(file, '\0');
26 + if (ext > file && !strcasecmp(ext, ".tar")) return rc;
28 if (magic[0] == 'B' && magic[1] == 'Z')
29 *compressed = COMPRESSED_BZIP2;