diff options
author | delphij <delphij@FreeBSD.org> | 2015-01-02 21:20:02 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2015-01-02 21:20:02 +0000 |
commit | 1bda30591aca9572e7da640b3af5447296f6d005 (patch) | |
tree | f4ff57ef01d3be17382b5421746e088c6954eeda /contrib/file/src/magic.c | |
parent | 2ea8fb0629743808332e7dce5b26fd8deb275d99 (diff) | |
parent | f243c198ffedd6408e117b77e39a5a6277aa57b2 (diff) | |
download | FreeBSD-src-1bda30591aca9572e7da640b3af5447296f6d005.zip FreeBSD-src-1bda30591aca9572e7da640b3af5447296f6d005.tar.gz |
MFV r276568:
Update file to 5.22.
MFC after: 2 weeks
Diffstat (limited to 'contrib/file/src/magic.c')
-rw-r--r-- | contrib/file/src/magic.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/contrib/file/src/magic.c b/contrib/file/src/magic.c index b0cf11c..d16f8c6 100644 --- a/contrib/file/src/magic.c +++ b/contrib/file/src/magic.c @@ -33,7 +33,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: magic.c,v 1.90 2014/12/04 15:56:46 christos Exp $") +FILE_RCSID("@(#)$File: magic.c,v 1.91 2014/12/16 23:18:40 christos Exp $") #endif /* lint */ #include "magic.h" @@ -554,6 +554,9 @@ magic_setparam(struct magic_set *ms, int param, const void *val) case MAGIC_PARAM_ELF_SHNUM_MAX: ms->elf_shnum_max = *(const size_t *)val; return 0; + case MAGIC_PARAM_ELF_NOTES_MAX: + ms->elf_notes_max = *(const size_t *)val; + return 0; default: errno = EINVAL; return -1; @@ -576,6 +579,9 @@ magic_getparam(struct magic_set *ms, int param, void *val) case MAGIC_PARAM_ELF_SHNUM_MAX: *(size_t *)val = ms->elf_shnum_max; return 0; + case MAGIC_PARAM_ELF_NOTES_MAX: + *(size_t *)val = ms->elf_notes_max; + return 0; default: errno = EINVAL; return -1; |