mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
Add a rule to check for uses of readlink.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
This commit is contained in:
parent
b195f20f18
commit
54c973d52b
2
.x-sc_prohibit_readlink
Normal file
2
.x-sc_prohibit_readlink
Normal file
@ -0,0 +1,2 @@
|
||||
^src/util/util\.c$
|
||||
^ChangeLog-old$
|
5
cfg.mk
5
cfg.mk
@ -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' \
|
||||
|
Loading…
Reference in New Issue
Block a user