From b9efc7dc3b97ef667ab99cee884b8485ebcb2f91 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Fri, 30 Apr 2010 14:03:41 +0200 Subject: [PATCH] MAke virFileHasSuffix case insensitive * src/util/util.c: as it's used for checking things like .iso suffixes --- src/util/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/util.c b/src/util/util.c index a7bb67c712..320918506e 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) \ -- GitLab