diff --git a/ntfsprogs/ntfsmount.c b/ntfsprogs/ntfsmount.c index 0ac8e278..9848b59a 100644 --- a/ntfsprogs/ntfsmount.c +++ b/ntfsprogs/ntfsmount.c @@ -577,8 +577,11 @@ static int ntfs_fuse_filler(ntfs_fuse_fill_context_t *fill_ctx, free(filename); return 0; } - if (MREF(mref) == FILE_root || MREF(mref) >= FILE_first_user) - fill_ctx->filler(fill_ctx->buf, filename, NULL, 0); + if (MREF(mref) == FILE_root || MREF(mref) >= FILE_first_user) { + struct stat st = { .st_ino = MREF(mref) }; + + fill_ctx->filler(fill_ctx->buf, filename, &st, 0); + } free(filename); return 0; }