[libvirt] [PATCH] Remove last usageof PATH_MAX and ban its future use
Eric Blake
eblake at redhat.com
Fri May 25 17:02:41 UTC 2012
On 05/25/2012 10:43 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
>
> Remove a number of pointless checks against PATH_MAX and
> add a syntax-check rule to prevent its use in future
> ---
> cfg.mk | 5 +++++
> src/security/virt-aa-helper.c | 4 ++--
> src/storage/storage_backend_scsi.c | 2 +-
> src/xenxs/xen_xm.c | 2 --
> tools/virsh.c | 7 ++++---
> 5 files changed, 12 insertions(+), 8 deletions(-)
>
> diff --git a/cfg.mk b/cfg.mk
> index 07fb7b2..534dc67 100644
> --- a/cfg.mk
> +++ b/cfg.mk
> @@ -408,6 +408,11 @@ sc_prohibit_VIR_ERR_NO_MEMORY:
> halt='use virReportOOMError, not V'IR_ERR_NO_MEMORY \
> $(_sc_search_regexp)
>
> +sc_prohibit_PATH_MAX:
> + @prohibit='\<P''ATH_MAX\>' \
> + halt='dynamically allocate paths, do not use P'ATH_MAX \
> + $(_sc_search_regexp)
ACK.
--
Eric Blake eblake at redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120525/0bcd22e6/attachment-0001.sig>
More information about the libvir-list
mailing list