summaryrefslogtreecommitdiffstats
path: root/src/ntfs_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-03-24 17:20:03 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2008-03-24 17:20:03 +0100
commitb20a03462cd53de7a7e13c178b509f8120d4b1df (patch)
treecc4430d3088333278b21a422ae0edac02c1a96f0 /src/ntfs_dir.c
parent4e7502c9596cf1c16cc3a270dd72574e88ff49ef (diff)
Fix for NTFS listing: only hides system files beginning by '$' (not . and ..)
Diffstat (limited to 'src/ntfs_dir.c')
-rw-r--r--src/ntfs_dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ntfs_dir.c b/src/ntfs_dir.c
index f595013..4524764 100644
--- a/src/ntfs_dir.c
+++ b/src/ntfs_dir.c
@@ -200,7 +200,7 @@ static int ntfs_td_list_entry( struct ntfs_dir_struct *ls, const ntfschar *name
#endif
result = 0; /* These are successful */
- if (MREF(mref) < FILE_first_user) /* Hide system file */
+ if (MREF(mref) < FILE_first_user && filename[0] == '$') /* Hide system file */
goto free;
/* Keep FILE_NAME_WIN32 and FILE_NAME_POSIX */
if ((name_type & FILE_NAME_WIN32_AND_DOS) == FILE_NAME_DOS)