diff --git a/obexd/plugins/ftp.c b/obexd/plugins/ftp.c
index 2ec008f..8e17b6f 100644
--- a/obexd/plugins/ftp.c
+++ b/obexd/plugins/ftp.c
if (type == NULL && name == NULL)
return -EBADR;
- if (g_strcmp0(type, CAP_TYPE) == 0)
+ if (type != NULL && g_ascii_strcasecmp(type, CAP_TYPE) == 0)
return obex_get_stream_start(os, capability);
path = g_build_filename(ftp->folder, name, NULL);
diff --git a/obexd/plugins/opp.c b/obexd/plugins/opp.c
index 4f0ed08..5937110 100644
--- a/obexd/plugins/opp.c
+++ b/obexd/plugins/opp.c
if (type == NULL)
return -EPERM;
- if (g_str_equal(type, VCARD_TYPE)) {
+ if (g_ascii_strcasecmp(type, VCARD_TYPE) == 0) {
if (obex_get_stream_start(os, VCARD_FILE) < 0)
return -ENOENT;
diff --git a/obexd/plugins/pbap.c b/obexd/plugins/pbap.c
index 82963af..4892d7a 100644
--- a/obexd/plugins/pbap.c
+++ b/obexd/plugins/pbap.c
pbap->params = params;
- if (strcmp(type, PHONEBOOK_TYPE) == 0) {
+ if (g_ascii_strcasecmp(type, PHONEBOOK_TYPE) == 0) {
/* Always contains the absolute path */
if (g_path_is_absolute(name))
path = g_strdup(name);
else
path = g_build_filename("/", name, NULL);
- } else if (strcmp(type, VCARDLISTING_TYPE) == 0) {
+ } else if (g_ascii_strcasecmp(type, VCARDLISTING_TYPE) == 0) {
/* Always relative */
if (!name || strlen(name) == 0)
/* Current folder */
/* Current folder + relative path */
path = g_build_filename(pbap->folder, name, NULL);
- } else if (strcmp(type, VCARDENTRY_TYPE) == 0) {
+ } else if (g_ascii_strcasecmp(type, VCARDENTRY_TYPE) == 0) {
/* File name only */
path = g_strdup(name);
} else