aboutsummaryrefslogtreecommitdiff
path: root/cache.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2006-08-16 12:57:23 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2006-08-16 12:57:23 +0000
commit4046be4487138645174b7a9a2398dd59f790651d (patch)
tree456cb66873d035de56b4a59409fee1793f68618c /cache.c
parentd8c313ff85b838ba7c4c58c52b683c5314fda215 (diff)
downloadsshfs-4046be4487138645174b7a9a2398dd59f790651d.tar
sshfs-4046be4487138645174b7a9a2398dd59f790651d.tar.gz
sshfs-4046be4487138645174b7a9a2398dd59f790651d.tar.bz2
sshfs-4046be4487138645174b7a9a2398dd59f790651d.zip
fixes
Diffstat (limited to 'cache.c')
-rw-r--r--cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache.c b/cache.c
index 776c778..3fbecfa 100644
--- a/cache.c
+++ b/cache.c
@@ -250,7 +250,7 @@ static int cache_dirfill(fuse_cache_dirh_t ch, const char *name,
const struct stat *stbuf)
{
int err = ch->filler(ch->h, name, 0, 0);
- if (!err) {
+ if (!err && (stbuf->st_mode & S_IFMT)) {
char *fullpath;
g_ptr_array_add(ch->dir, g_strdup(name));
fullpath = g_strdup_printf("%s/%s", !ch->path[1] ? "" : ch->path, name);