[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [libvirt] [PATCH] storage pool discovery
- From: David Lively <dlively virtualiron com>
- To: Jim Meyering <jim meyering net>
- Cc: libvir-list <libvir-list redhat com>
- Subject: Re: [libvirt] [PATCH] storage pool discovery
- Date: Fri, 22 Aug 2008 16:31:10 -0400
On Fri, 2008-08-22 at 19:16 +0200, Jim Meyering wrote:
> > + asprintf(&srcSpec,
> > + "<source><host name='%.*s' port='%s'/></source>",
> > + hostlen, host, port) :
>
> Do the hostname and port string need to be quoted (and/or evoke
> warning/failure), in case they contain things like "'"?
The host string isn't quoted when creating XML in some similar code in
cmdPoolCreateAs ... but that's not necessarily a good justification.
Is there an existing routine to quote a string to make it suitable for
an XML attribute value? (Something in libxml2, perhaps??) I'm not even
sure of the correct syntax to quote a "'" in an attribute value, for
example.
Dave
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]