From b92587bc56daa83fc7cfbc16bcf7d47c72a151a3 Mon Sep 17 00:00:00 2001
From: Chris Lalancette <clalance@redhat.com>
Date: Wed, 23 Sep 2009 14:58:13 +0200
Subject: [PATCH] Fix up "make syntax-check" after the tree restructuring.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
---
 .x-sc_prohibit_strncpy | 1 +
 cfg.mk                 | 7 +++----
 2 files changed, 4 insertions(+), 4 deletions(-)
 create mode 100644 .x-sc_prohibit_strncpy

diff --git a/.x-sc_prohibit_strncpy b/.x-sc_prohibit_strncpy
new file mode 100644
index 0000000000..10bc29c178
--- /dev/null
+++ b/.x-sc_prohibit_strncpy
@@ -0,0 +1 @@
+src/util/util.c
diff --git a/cfg.mk b/cfg.mk
index 2d2dd7ec8e..c217332ac2 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -92,10 +92,9 @@ sc_prohibit_asprintf:
 	  $(_prohibit_regexp)
 
 sc_prohibit_strncpy:
-	@grep -nE 'strncpy *\('						\
-	    $$($(VC_LIST) | grep -v 'src/util.c') &&			\
-	  { echo '$(ME): use virStrncpy, not strncpy'			\
-		1>&2; exit 1; } || :
+	@re='strncpy *\('						\
+	msg='use virStrncpy, not strncpy'				\
+	  $(_prohibit_regexp)
 
 sc_prohibit_VIR_ERR_NO_MEMORY:
 	@re='\<V''IR_ERR_NO_MEMORY\>'					\
-- 
GitLab