From: Panu Matilainen Date: Tue, 1 Sep 2009 07:31:44 +0000 (+0300) Subject: Make internal file classifier look into compressed files X-Git-Tag: rpm-4.8.0-beta1~362 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c3770c9404ffa2fcfbe0869dd7fbdb73466a637a;p=platform%2Fupstream%2Frpm.git Make internal file classifier look into compressed files - 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 --- diff --git a/build/rpmfc.c b/build/rpmfc.c index 6483781..1bcc6ec 100644 --- a/build/rpmfc.c +++ b/build/rpmfc.c @@ -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)