Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Jan 2009 03:31:45 +0000 (UTC)
From:      "David E. O'Brien" <obrien@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r186692 - head/contrib/file
Message-ID:  <200901020331.n023VjsS086467@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901020331.n023VjsS086467>