summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/rib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/rib.c b/src/lib/rib.c
index 22b57fb7..78ae82ef 100644
--- a/src/lib/rib.c
+++ b/src/lib/rib.c
@@ -139,6 +139,10 @@ static int rib_readdir(const char * path,
(void) offset;
(void) info;
+ /* Fix ls calling readdir in an infinite loop on raspbian. */
+ if (info != NULL && info->nonseekable != 0)
+ return -ENOENT;
+
filler(buf, ".", NULL, 0);
filler(buf, "..", NULL, 0);