Re: [libvirt] [PATCH] virFileHasSuffix case sensitivity

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]