提交 54c973d5 编写于 作者: C Chris Lalancette

Add a rule to check for uses of readlink.

Signed-off-by: NChris Lalancette <clalance@redhat.com>
上级 b195f20f
^src/util/util\.c$
^ChangeLog-old$
......@@ -94,6 +94,11 @@ sc_prohibit_strncpy:
msg='use virStrncpy, not strncpy' \
$(_prohibit_regexp)
sc_prohibit_readlink:
@re='readlink *\(' \
msg='use virFileResolveLink, not readlink' \
$(_prohibit_regexp)
sc_prohibit_gethostname:
@re='gethostname *\(' \
msg='use virGetHostname, not gethostname' \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册