That was ntfsmount bug with '.' and '..', no need for a workaround.

edge.strict_endians
cha0smaster 2005-11-10 21:26:41 +00:00
parent 77a5597521
commit 3c2c988f96
1 changed files with 2 additions and 4 deletions

View File

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