[PATCH obexd] filesystem: Fix folder listing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>

parent-folder should indicates the existence of a parent folder which is
the opposit of what the code is currently doing.
---
 plugins/filesystem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/filesystem.c b/plugins/filesystem.c
index 68785c6..677df76 100644
--- a/plugins/filesystem.c
+++ b/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);
-- 
1.7.7.6

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux