From e6f47aa69657cac8d80c4361b92a4443b7540770 Mon Sep 17 00:00:00 2001 From: delphij Date: Thu, 29 Oct 2015 17:51:48 +0000 Subject: MFC r287453,287454,288143: file 5.25. Relnotes: yes --- contrib/file/src/file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'contrib/file/src/file.c') diff --git a/contrib/file/src/file.c b/contrib/file/src/file.c index c700f66..fa46b95 100644 --- a/contrib/file/src/file.c +++ b/contrib/file/src/file.c @@ -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.167 2015/09/11 17:24:09 christos Exp $") #endif /* lint */ #include "magic.h" @@ -131,6 +131,7 @@ private struct { { "elf_phnum", MAGIC_PARAM_ELF_PHNUM_MAX, 0 }, { "elf_shnum", MAGIC_PARAM_ELF_SHNUM_MAX, 0 }, { "elf_notes", MAGIC_PARAM_ELF_NOTES_MAX, 0 }, + { "regex", MAGIC_PARAM_REGEX_MAX, 0 }, }; private char *progname; /* used throughout */ @@ -237,6 +238,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; -- cgit v1.1