提交 b9efc7dc 编写于 作者: D Daniel Veillard

MAke virFileHasSuffix case insensitive

* src/util/util.c: as it's used for checking things like .iso suffixes
上级 7c66c033
...@@ -1153,7 +1153,7 @@ int virFileHasSuffix(const char *str, ...@@ -1153,7 +1153,7 @@ int virFileHasSuffix(const char *str,
if (len < suffixlen) if (len < suffixlen)
return 0; return 0;
return STREQ(str + len - suffixlen, suffix); return STRCASEEQ(str + len - suffixlen, suffix);
} }
# define SAME_INODE(Stat_buf_1, Stat_buf_2) \ # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册