[PATCH 3/3] syntax-check: prefer g_mkstemp_full and g_mkdtemp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 build-aux/syntax-check.mk | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk
index 74d0d5f6d4..7d1ac4dbfc 100644
--- a/build-aux/syntax-check.mk
+++ b/build-aux/syntax-check.mk
@@ -402,10 +402,17 @@ sc_prohibit_fork_wrappers:
 	halt='use virCommand for child processes' \
 	  $(_sc_search_regexp)
 
-# Prefer mkostemp with O_CLOEXEC.
+# Prefer g_mkostemp_full with O_CLOEXEC.
 sc_prohibit_mkstemp:
-	@prohibit='[^"]\<mkstemps? *\(' \
-	halt='use mkostemp with O_CLOEXEC instead of mkstemp' \
+	@prohibit='[^"]\<mko?stemps? *\(' \
+	in_vc_files='\.[chx]$$' \
+	halt='use g_mkstemp_full with O_CLOEXEC instead of mkstemp' \
+	  $(_sc_search_regexp)
+
+sc_prohibit_mkdtemp:
+	@prohibit='[^"]\<mkdtemp *\(' \
+	in_vc_files='\.[chx]$$' \
+	halt='use g_mkdtemp instead of mkdtemp' \
 	  $(_sc_search_regexp)
 
 # access with X_OK accepts directories, but we can't exec() those.
-- 
2.21.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux