]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
MAke virFileHasSuffix case insensitive
authorDaniel Veillard <veillard@redhat.com>
Fri, 30 Apr 2010 12:03:41 +0000 (14:03 +0200)
committerDaniel Veillard <veillard@redhat.com>
Fri, 30 Apr 2010 12:03:41 +0000 (14:03 +0200)
* src/util/util.c: as it's used for checking things like .iso suffixes

src/util/util.c

index a7bb67c7121cb7bd22f71f664843c88fb8b78457..320918506ef52d413ca801c73c286d25449f84e0 100644 (file)
@@ -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) \