From 645c798b91c0cd20c32027a36f31113c0f2dd1c3 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Mon, 29 Oct 2018 16:30:28 -0400 Subject: [PATCH] filter .fuse_hidden* files from readdir --- src/readdir.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/readdir.cpp b/src/readdir.cpp index 42d9748e..78f19d6d 100644 --- a/src/readdir.cpp +++ b/src/readdir.cpp @@ -74,6 +74,8 @@ _readdir(const vector &srcmounts, rv = 0; for(struct dirent *de = fs::readdir(dh); de && !rv; de = fs::readdir(dh)) { + if(!strncmp(de->d_name,".fuse_hidden",12)) + continue; rv = names.put(de->d_name); if(rv == 0) continue;