Make internal file classifier look into compressed files
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 1 Sep 2009 07:31:44 +0000 (10:31 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 1 Sep 2009 07:31:44 +0000 (10:31 +0300)
- prerequisite for various things like font provide extraction
- at least libmagic from file-5.00 leaked fd's with MAGIC_COMPRESS,
  this has been fixed as of file-5.03

build/rpmfc.c

index 6483781..1bcc6ec 100644 (file)
@@ -1211,7 +1211,7 @@ rpmRC rpmfcClassify(rpmfc fc, ARGV_t argv, rpm_mode_t * fmode)
     size_t slen;
     int fcolor;
     int xx;
-    int msflags = MAGIC_CHECK; /* XXX MAGIC_COMPRESS flag? */
+    int msflags = MAGIC_CHECK | MAGIC_COMPRESS;
     magic_t ms = NULL;
 
     if (fc == NULL || argv == NULL)