fix: inode number wasn't filled in dirent structures (Ted Anderson, Szaka)

master
szaka 2006-12-17 19:48:34 +00:00
parent be2dbbf92d
commit 41d37771a2
1 changed files with 5 additions and 2 deletions

View File

@ -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;
}