Return to magic-test.c CVS log | Up to [local] / src / usr.bin / file |
version 1.16, 2016/02/20 15:29:37 | version 1.17, 2016/04/30 21:10:28 | ||
---|---|---|---|
|
|
||
result = (regexec(&re, ms->base, 1, &m, REG_STARTEND) == 0); | result = (regexec(&re, ms->base, 1, &m, REG_STARTEND) == 0); | ||
if (result == !ml->test_not) { | if (result == !ml->test_not) { | ||
if (ml->result != NULL) | if (ml->result != NULL) { | ||
magic_add_result(ms, ml, "%s", ""); | magic_add_string(ms, ml, ms->base + m.rm_so, | ||
m.rm_eo - m.rm_so); | |||
} | |||
if (result) { | if (result) { | ||
if (sflag) | if (sflag) | ||
ms->offset = m.rm_so; | ms->offset = m.rm_so; |