From bf97d9fa626baa1341999293779f215574e86d13 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Tue, 8 Sep 2015 13:46:49 +0000 Subject: [PATCH] apply parameters before unwrapping() the list of files (Christoph Biedl) --- src/file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/file.c b/src/file.c index 44f4ccea..15e1d540 100644 --- a/src/file.c +++ b/src/file.c @@ -32,7 +32,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: file.c,v 1.165 2015/06/11 12:52:32 christos Exp $") +FILE_RCSID("@(#)$File: file.c,v 1.166 2015/09/08 13:46:49 christos Exp $") #endif /* lint */ #include "magic.h" @@ -237,6 +237,7 @@ main(int argc, char *argv[]) if (magic == NULL) if ((magic = load(magicfile, flags)) == NULL) return 1; + applyparam(magic); e |= unwrap(magic, optarg); ++didsomefiles; break; -- 2.40.0