From 41d37771a20a499e0162f13eec19d353ec1729cb Mon Sep 17 00:00:00 2001 From: szaka Date: Sun, 17 Dec 2006 19:48:34 +0000 Subject: [PATCH] fix: inode number wasn't filled in dirent structures (Ted Anderson, Szaka) --- src/ntfs-3g.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index 9cebcb2c..dd904a69 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -562,8 +562,11 @@ static int ntfs_fuse_filler(ntfs_fuse_fill_context_t *fill_ctx, return 0; } if (MREF(mref) == FILE_root || MREF(mref) >= FILE_first_user || - ctx->show_sys_files) - fill_ctx->filler(fill_ctx->buf, filename, NULL, 0); + ctx->show_sys_files) { + struct stat st = { .st_ino = MREF(mref) }; + + fill_ctx->filler(fill_ctx->buf, filename, &st, 0); + } free(filename); return 0; }