aboutsummaryrefslogtreecommitdiff
path: root/lib
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 /lib
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 'lib')
-rwxr-xr-xlib/fuse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fuse.c b/lib/fuse.c
index a8c5915..737456e 100755
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -3566,7 +3566,7 @@ static int fill_dir_plus(void *dh_, const char *name, const struct stat *statp,
return 1;
}
- if (off && statp && (flags & FUSE_FILL_DIR_PLUS)) {
+ if (statp && (flags & FUSE_FILL_DIR_PLUS)) {
e.attr = *statp;
if (!is_dot_or_dotdot(name)) {