mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-31 18:15:25 +00:00
MAke virFileHasSuffix case insensitive
* src/util/util.c: as it's used for checking things like .iso suffixes
This commit is contained in:
parent
7c66c033a9
commit
b9efc7dc3b
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user