From 5012a05ac875c1988263faaa77177c27c62c52bb Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Wed, 3 Feb 2021 11:53:21 +0200 Subject: 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. --- lib/fuse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/fuse.c') 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)) { -- cgit v1.2.3