mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
build: fix recent syntax-check breakage
The use of readlink() in lxc_container.c is intentional; we don't want an absolute pathname there. * src/util/cgroup.h (VIR_CGROUP_SYSFS_MOUNT): Indent properly. * cfg.mk (exclude_file_name_regexp--sc_prohibit_readlink): Add exemption.
This commit is contained in:
parent
2f5fdc886e
commit
3337ba6dc7
3
cfg.mk
3
cfg.mk
@ -800,7 +800,8 @@ exclude_file_name_regexp--sc_prohibit_nonreentrant = \
|
||||
exclude_file_name_regexp--sc_prohibit_raw_allocation = \
|
||||
^(src/util/memory\.[ch]|examples/.*)$$
|
||||
|
||||
exclude_file_name_regexp--sc_prohibit_readlink = ^src/util/util\.c$$
|
||||
exclude_file_name_regexp--sc_prohibit_readlink = \
|
||||
^(src/(util/util|lxc/lxc_container)\.c$$
|
||||
|
||||
exclude_file_name_regexp--sc_prohibit_setuid = ^src/util/util\.c$$
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
struct virCgroup;
|
||||
typedef struct virCgroup *virCgroupPtr;
|
||||
|
||||
#define VIR_CGROUP_SYSFS_MOUNT "/sys/fs/cgroup"
|
||||
# define VIR_CGROUP_SYSFS_MOUNT "/sys/fs/cgroup"
|
||||
|
||||
enum {
|
||||
VIR_CGROUP_CONTROLLER_CPU,
|
||||
|
Loading…
x
Reference in New Issue
Block a user