diff options
Diffstat (limited to 'src/apprentice.c')
-rw-r--r-- | src/apprentice.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/apprentice.c b/src/apprentice.c index eca3ae06af99e..7ebd6897bd048 100644 --- a/src/apprentice.c +++ b/src/apprentice.c @@ -32,7 +32,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: apprentice.c,v 1.283 2019/02/20 02:35:27 christos Exp $") +FILE_RCSID("@(#)$File: apprentice.c,v 1.284 2019/06/29 22:31:04 christos Exp $") #endif /* lint */ #include "magic.h" @@ -1926,17 +1926,7 @@ parse(struct magic_set *ms, struct magic_entry *me, const char *line, file_magwarn(ms, "offset `%s' invalid", l); return -1; } -#if 0 - if (m->offset < 0 && cont_level != 0 && - (m->flag & (OFFADD | INDIROFFADD)) == 0) { - if (ms->flags & MAGIC_CHECK) { - file_magwarn(ms, - "negative direct offset `%s' at level %u", - l, cont_level); - } - return -1; - } -#endif + l = t; if (m->flag & INDIR) { |