summaryrefslogtreecommitdiff
path: root/document-portal/xdp-fuse.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2015-08-04 12:05:21 +0200
committerAlexander Larsson <alexl@redhat.com>2015-08-04 12:05:21 +0200
commitc465c15e513e0a7f612bf26dc00f64f2b77e8998 (patch)
tree8a01a5c9f88dab63a4cac7d64f4b382888b69230 /document-portal/xdp-fuse.c
parentf76f6a39ef6b7169fd2102f3167a5dded920ee74 (diff)
downloadxdg-app-c465c15e513e0a7f612bf26dc00f64f2b77e8998.tar.gz
Don't list empty names in opendir
This happened in my devel system by mistake and it broke readdir.
Diffstat (limited to 'document-portal/xdp-fuse.c')
-rw-r--r--document-portal/xdp-fuse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/document-portal/xdp-fuse.c b/document-portal/xdp-fuse.c
index ed87fb2..b4ed663 100644
--- a/document-portal/xdp-fuse.c
+++ b/document-portal/xdp-fuse.c
@@ -815,8 +815,9 @@ xdp_fuse_opendir (fuse_req_t req,
const char *name = key;
guint32 id = GPOINTER_TO_UINT(value);
- dirbuf_add (req, &b, name,
- make_inode (APP_DIR_INO_CLASS, id));
+ if (strlen (name) > 0)
+ dirbuf_add (req, &b, name,
+ make_inode (APP_DIR_INO_CLASS, id));
}
}
break;