From 3c2c988f9649efd73a73b88c3e6dbbfddd9f75d4 Mon Sep 17 00:00:00 2001 From: cha0smaster Date: Thu, 10 Nov 2005 21:26:41 +0000 Subject: [PATCH] That was ntfsmount bug with '.' and '..', no need for a workaround. --- ntfsprogs/ntfsmount.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ntfsprogs/ntfsmount.c b/ntfsprogs/ntfsmount.c index 6cbe2117..dd466c95 100644 --- a/ntfsprogs/ntfsmount.c +++ b/ntfsprogs/ntfsmount.c @@ -494,7 +494,8 @@ static int ntfs_fuse_filler(ntfs_fuse_fill_context_t *fill_ctx, MREF(mref), strerror(errno)); return 0; } - if (MREF(mref) >= FILE_first_user || ctx->show_sys_files) + if (MREF(mref) == FILE_root || MREF(mref) >= FILE_first_user || + ctx->show_sys_files) fill_ctx->filler(fill_ctx->buf, filename, NULL, 0); free(filename); return 0; @@ -516,9 +517,6 @@ static int ntfs_fuse_readdir(const char *path, void *buf, ni = ntfs_pathname_to_inode(vol, NULL, path); if (!ni) return -errno; - if (!strcmp(path, "/")) - filler(buf, ".", NULL, 0); - filler(buf, "..", NULL, 0); if (ntfs_readdir(ni, &pos, &fill_ctx, (ntfs_filldir_t)ntfs_fuse_filler)) err = -errno;