From 5ffb0bb37f6c3a0ab11f3f65107769f81cbfcd55 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 31 Jan 2012 17:24:23 -0800 Subject: [PATCH] obexd: Fix folder listing parent-folder should indicates the existence of a parent folder which is the opposit of what the code is currently doing. --- obexd/plugins/filesystem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obexd/plugins/filesystem.c b/obexd/plugins/filesystem.c index 68785c6b9..677df766c 100644 --- a/obexd/plugins/filesystem.c +++ b/obexd/plugins/filesystem.c @@ -488,7 +488,7 @@ static GString *append_listing(GString *object, const char *name, goto failed; } - if (root) + if (!root) object = g_string_append(object, FL_PARENT_FOLDER_ELEMENT); ret = verify_path(name); -- 2.47.3