summaryrefslogtreecommitdiffstats
path: root/src/ntfs_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-05 21:56:28 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-05 21:56:28 +0200
commit40d42f278d7dbf4fe7d7a23a4ca802317bc576a9 (patch)
treef60e9e5b6f6036870d9d0e4a3eb04bd51cdd6335 /src/ntfs_dir.c
parentf2f8ac853e98e7fe61a24dc5b14f6cf5a16ec964 (diff)
NTFS file listing: sort files
Diffstat (limited to 'src/ntfs_dir.c')
-rw-r--r--src/ntfs_dir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ntfs_dir.c b/src/ntfs_dir.c
index d606c6f..c5e87aa 100644
--- a/src/ntfs_dir.c
+++ b/src/ntfs_dir.c
@@ -72,6 +72,7 @@
#include "intrf.h"
#include "ntfs.h"
#include "list.h"
+#include "list_sort.h"
#include "dir.h"
#include "ntfs_dir.h"
#include "ntfs_utl.h"
@@ -321,6 +322,7 @@ static int ntfs_dir(disk_t *disk_car, const partition_t *partition, dir_data_t *
log_critical("ntfs_readdir BUG not MFT_RECORD_IS_DIRECTORY\n");
/* Finished with the inode; release it. */
ntfs_inode_close(inode);
+ td_list_sort(&dir_list->list, filesort);
return 0;
}