From ff2c43131c1fb3312aa8d3e3cb9d77fd56b26334 Mon Sep 17 00:00:00 2001 From: Luiz Augusto Von Dentz Date: Mon, 15 Feb 2010 13:33:06 +0200 Subject: [PATCH] obexd: Fix bug on ftp plugin when mimetype exists but is unknown The code was returning FALSE (0) when it should return a posix error thus causing a unkown mimetype to not be handle by mimetype drivers as it should. --- obexd/plugins/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obexd/plugins/ftp.c b/obexd/plugins/ftp.c index f15597ed0..e0a3b97d6 100644 --- a/obexd/plugins/ftp.c +++ b/obexd/plugins/ftp.c @@ -155,7 +155,7 @@ static gint get_by_type(struct obex_session *os, gchar *type, size_t *size) if (g_str_equal(type, LST_TYPE)) return os_prepare_get(os, os->current_folder, size); - return FALSE; + return -ENOENT; } static gint ftp_prepare_get(struct obex_session *os, gchar *file, -- 2.47.3