summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-09-17 10:12:20 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-09-19 14:12:29 +0100
commit7e24c5bca48676d1e08ca55db9c94cba95e7a6f7 (patch)
tree41fb648d20011d3fcf4f3f419bca5c1c65662e01
parent2c8a62a7a212a409685307fbf03316ba84c9c936 (diff)
downloadlibguestfs-7e24c5bca48676d1e08ca55db9c94cba95e7a6f7.tar.gz
libguestfs-7e24c5bca48676d1e08ca55db9c94cba95e7a6f7.tar.xz
libguestfs-7e24c5bca48676d1e08ca55db9c94cba95e7a6f7.zip
syntax: Allow strncpy in launch-*.c files (thanks Jim Meyering).
We use strncpy, justifiably, to copy the socket name into the fixed length Unix domain sun_path buffer. (cherry picked from commit 72ab351acef2f2bc6b0e4f36d69e94f8fa064f3c)
-rw-r--r--cfg.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/cfg.mk b/cfg.mk
index 4e5a9d6c..000ea631 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -32,6 +32,7 @@ exclude_file_name_regexp--sc_prohibit_doubled_word = ^po/
exclude_file_name_regexp--sc_prohibit_magic_number_exit = ^(po|po-docs)/|\.pod$
exclude_file_name_regexp--sc_prohibit_strcmp = ^examples/
exclude_file_name_regexp--sc_prohibit_strcmp_and_strncmp = ^examples/
+exclude_file_name_regexp--sc_prohibit_strncpy = ^src/launch-.*\.c$
# Tests not to run as part of "make distcheck".
local-checks-to-skip = \