[libvirt] [PATCH 2/5] remote generator: Fix comment ignoring regex
Eric Blake
eblake at redhat.com
Mon May 9 21:00:02 UTC 2011
On 05/07/2011 06:28 AM, Matthias Bolte wrote:
> ---
> daemon/remote_generator.pl | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/daemon/remote_generator.pl b/daemon/remote_generator.pl
> index b06e51a..8d62c37 100755
> --- a/daemon/remote_generator.pl
> +++ b/daemon/remote_generator.pl
> @@ -380,7 +380,7 @@ elsif ($opt_b) {
> } else {
> push(@args_list, "args->$2");
> }
> - } elsif ($args_member =~ m/^\/*/) {
Ignore 0 or more / at the start of a line (which basically meant _every_
single line that got to this =~ would match, regardless of whether it is
a comment)...
> + } elsif ($args_member =~ m/^(\/)?\*/) {
vs. ignore literal '/*' or '*' at the start of a line (which catches
both the start and a line continuation for /* */ comments, but misses //
comments - then again, we don't use // comments). Looks right to me, so:
ACK.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110509/d5f9b4b3/attachment-0001.sig>
More information about the libvir-list
mailing list