From 2cb78bff149ab865349b7feb83ff0543c0431694 Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Tue, 6 Feb 2018 16:45:09 +0800 Subject: [PATCH] Fix bug: Formatting error of the file list sent. Signed-off-by: Jianhui Zhao --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index addac74..d6cd3a0 100755 --- a/src/main.c +++ b/src/main.c @@ -233,7 +233,7 @@ static void send_filelist(struct uwsc_client *cl, const char *sid, const char *p tbl = blobmsg_open_table(&b, ""); blobmsg_add_string(&b, "name", ".."); - blobmsg_add_string(&b, "type", "dir"); + blobmsg_add_u8(&b, "dir", 1); blobmsg_close_table(&b, tbl); while((dentry = readdir(dir))) {