From: Christos Zoulas Date: Tue, 26 Feb 2013 21:03:14 +0000 (+0000) Subject: add the initial offset so that recursive "use" invocations work. X-Git-Tag: FILE5_14~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4bd460bcb815525c73d76ee245ff159732d82319;p=file add the initial offset so that recursive "use" invocations work. --- diff --git a/src/softmagic.c b/src/softmagic.c index 22d1a275..bd5f9a03 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.159 2013/02/17 22:28:27 christos Exp $") +FILE_RCSID("@(#)$File: softmagic.c,v 1.160 2013/02/26 18:24:43 christos Exp $") #endif /* lint */ #include "magic.h" @@ -1727,7 +1727,7 @@ mget(struct magic_set *ms, const unsigned char *s, struct magic *m, file_error(ms, 0, "cannot find entry `%s'", sbuf); return -1; } - return match(ms, ml.magic, ml.nmagic, s, nbytes, offset, + return match(ms, ml.magic, ml.nmagic, s, nbytes, offset + o, mode, text, flip, returnval); case FILE_NAME: