mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 06:42:45 +00:00
Add an additional COMPILE_ONLY check.
This commit is contained in:
parent
28a8b56297
commit
4f99d1ea86
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=186692
@ -588,9 +588,11 @@ set_test_type(struct magic *mstart, struct magic *m)
|
||||
break;
|
||||
case FILE_REGEX:
|
||||
case FILE_SEARCH:
|
||||
#ifndef COMPILE_ONLY
|
||||
/* binary test if pattern is not text */
|
||||
if (file_looks_utf8(m->value.us, m->vallen, NULL, NULL) <= 0)
|
||||
mstart->flag |= BINTEST;
|
||||
#endif
|
||||
break;
|
||||
case FILE_DEFAULT:
|
||||
/* can't deduce anything; we shouldn't see this at the
|
||||
|
Loading…
Reference in New Issue
Block a user