]> granicus.if.org Git - file/commit
When loading multiple magic files as in -m foo.mgc:bar and one of them fails,
authorChristos Zoulas <christos@zoulas.com>
Mon, 24 Oct 2016 15:21:07 +0000 (15:21 +0000)
committerChristos Zoulas <christos@zoulas.com>
Mon, 24 Oct 2016 15:21:07 +0000 (15:21 +0000)
commit6f5e033daeb492bb41633376c17dbf707744a58c
tree495d75032c2a7655a1cdd5e46820105f87a43526
parente667d0a800e446a62e2d8de802b64a2113b4b0f4
When loading multiple magic files as in -m foo.mgc:bar and one of them fails,
don't free the magic list entries, since the second can load successfully and
we'll still work. Print a warning though when that happens.
Reported by Christoph Biedl
src/apprentice.c
src/file.c