summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2010-04-30 14:03:41 +0200
committerDaniel Veillard <veillard@redhat.com>2010-04-30 14:03:41 +0200
commitb9efc7dc3b97ef667ab99cee884b8485ebcb2f91 (patch)
tree7cbbe17d8e13862e15aea4e8eabdfc28408d8462
parentnwfilter: Also pick IP address from a DHCP ACK message (diff)
downloadlibvirt-b9efc7dc3b97ef667ab99cee884b8485ebcb2f91.tar.gz
libvirt-b9efc7dc3b97ef667ab99cee884b8485ebcb2f91.tar.bz2
libvirt-b9efc7dc3b97ef667ab99cee884b8485ebcb2f91.zip
MAke virFileHasSuffix case insensitive
* src/util/util.c: as it's used for checking things like .iso suffixes
-rw-r--r--src/util/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/util.c b/src/util/util.c
index a7bb67c71..320918506 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) \