[libvirt] [PATCH] virFileHasSuffix case sensitivity
Daniel Veillard
veillard at redhat.com
Fri Apr 30 12:06:27 UTC 2010
On Thu, Apr 29, 2010 at 04:04:25PM +1200, Paul Dorman wrote:
> Hi Eric,
>
> sure. Here you go. Please let me know if there's anything else I need to do.
>
> diff --git a/src/util/util.c b/src/util/util.c
> index a7bb67c..3209185 100644
> --- a/src/util/util.c
> +++ b/src/util/util.c
> @@ -1153,7 +1153,7 @@ int virFileHasSuffix(const char *str,
> if (len < suffixlen)
> return 0;
>
> - return STREQ(str + len - suffixlen, suffix);
> + return STRCASEEQ(str + len - suffixlen, suffix);
> }
>
> # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
>
Ah, you came up with the same patch, pushed but I'm sorry I forgot
to attribute it to you !
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel at veillard.com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
More information about the libvir-list
mailing list