]> granicus.if.org Git - file/commitdiff
apply parameters before unwrapping() the list of files (Christoph Biedl)
authorChristos Zoulas <christos@zoulas.com>
Tue, 8 Sep 2015 13:46:49 +0000 (13:46 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 8 Sep 2015 13:46:49 +0000 (13:46 +0000)
src/file.c

index c700f669763ba921a4118de685856aa806ab7ddf..7502f5f1acfebb3b720df4c7a2165ea3cab1278f 100644 (file)
@@ -32,7 +32,7 @@
 #include "file.h"
 
 #ifndef        lint
-FILE_RCSID("@(#)$File: file.c,v 1.164 2015/06/03 18:21:24 christos Exp $")
+FILE_RCSID("@(#)$File: file.c,v 1.165 2015/06/11 12:52:32 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;