svn commit: r186692 - head/contrib/file

David E. O'Brien obrien at FreeBSD.org
Thu Jan 1 19:31:47 PST 2009


Author: obrien
Date: Fri Jan  2 03:31:45 2009
New Revision: 186692
URL: http://svn.freebsd.org/changeset/base/186692

Log:
  Add an additional COMPILE_ONLY check.

Modified:
  head/contrib/file/apprentice.c

Modified: head/contrib/file/apprentice.c
==============================================================================
--- head/contrib/file/apprentice.c	Fri Jan  2 03:10:55 2009	(r186691)
+++ head/contrib/file/apprentice.c	Fri Jan  2 03:31:45 2009	(r186692)
@@ -588,9 +588,11 @@ set_test_type(struct magic *mstart, stru
 		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


More information about the svn-src-head mailing list