MAke virFileHasSuffix case insensitive

* src/util/util.c: as it's used for checking things like .iso suffixes
This commit is contained in:
Daniel Veillard 2010-04-30 14:03:41 +02:00
parent 7c66c033a9
commit b9efc7dc3b

View 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) \