aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorMartin Pärtel <martin.partel@gmail.com>2021-02-03 11:53:21 +0200
committerGitHub <noreply@github.com>2021-02-03 09:53:21 +0000
commit5012a05ac875c1988263faaa77177c27c62c52bb (patch)
tree0207e1ee07d56e020798b89b30bea75d10559f74 /example
parentb9e3ea01dbbbba9518da216dd29c042af871ae31 (diff)
downloadlibfuse-5012a05ac875c1988263faaa77177c27c62c52bb.tar.gz
Fix returning inode numbers from readdir() in offset==0 mode. (#584)
- Test added for all passthrough examples. - passthrough.c uses offset==0 mode. The others don't. - passthrough.c changed to set FUSE_FILL_DIR_PLUS to make the test pass. - This fixes #583.
Diffstat (limited to 'example')
-rw-r--r--example/passthrough.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/passthrough.c b/example/passthrough.c
index 08273ff..86ac698 100644
--- a/example/passthrough.c
+++ b/example/passthrough.c
@@ -132,7 +132,7 @@ static int xmp_readdir(const char *path, void *buf, fuse_fill_dir_t filler,
memset(&st, 0, sizeof(st));
st.st_ino = de->d_ino;
st.st_mode = de->d_type << 12;
- if (filler(buf, de->d_name, &st, 0, 0))
+ if (filler(buf, de->d_name, &st, 0, FUSE_FILL_DIR_PLUS))
break;
}