From b20a03462cd53de7a7e13c178b509f8120d4b1df Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Mon, 24 Mar 2008 17:20:03 +0100 Subject: [PATCH] Fix for NTFS listing: only hides system files beginning by '$' (not . and ..) --- src/ntfs_dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ntfs_dir.c b/src/ntfs_dir.c index f5950137..45247649 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)