summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2018-03-11 01:23:52 +0000
committerChristos Zoulas <christos@zoulas.com>2018-03-11 01:23:52 +0000
commitfd83d6ff56456c56ddef510d3c935ee123de62fd (patch)
tree99f482f8b6284d089bf1f9076a6eca95bda2f22c
parenta4089c25503a17d7836694ebe74d3d7090544361 (diff)
downloadfile-git-fd83d6ff56456c56ddef510d3c935ee123de62fd.tar.gz
return if we matched or not in the "use" case so we can use:
>>>>&26 use msooxml >>>>&26 default x correctly.
-rw-r--r--src/softmagic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/softmagic.c b/src/softmagic.c
index f89e687c..00d5aac6 100644
--- a/src/softmagic.c
+++ b/src/softmagic.c
@@ -32,7 +32,7 @@
#include "file.h"
#ifndef lint
-FILE_RCSID("@(#)$File: softmagic.c,v 1.258 2018/02/24 19:49:43 christos Exp $")
+FILE_RCSID("@(#)$File: softmagic.c,v 1.259 2018/03/11 01:23:52 christos Exp $")
#endif /* lint */
#include "magic.h"
@@ -1728,7 +1728,7 @@ mget(struct magic_set *ms, struct magic *m, const struct buffer *b,
printed_something, need_separator, returnval);
if (rv != 1)
*need_separator = oneed_separator;
- return 1;
+ return rv;
case FILE_NAME:
if (ms->flags & MAGIC_NODESC)