summaryrefslogtreecommitdiffstats
path: root/src/ntfs_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-04-21 19:42:44 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2011-04-21 19:42:44 +0200
commit791794a74fdaa10f1acc707b254161b23007ae26 (patch)
treeb8a5806b41a477c68d3d8519cd9db3d691f44b69 /src/ntfs_dir.c
parentb555b3a4f62847a5e27173fc48548d5574fe37d1 (diff)
Workaround for Dos/DJGPP, stat.st_size seems to be 31 bits only.
Diffstat (limited to 'src/ntfs_dir.c')
-rw-r--r--src/ntfs_dir.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ntfs_dir.c b/src/ntfs_dir.c
index 9482bd0..c7b6d3a 100644
--- a/src/ntfs_dir.c
+++ b/src/ntfs_dir.c
@@ -256,6 +256,9 @@ static int ntfs_td_list_entry( struct ntfs_dir_struct *ls, const ntfschar *name
new_file->stat.st_gid=0;
new_file->stat.st_rdev=0;
new_file->stat.st_size=filesize;
+#ifdef DJGPP
+ new_file->file_size=filesize;
+#endif
new_file->stat.st_blksize=DEFAULT_SECTOR_SIZE;
#ifdef HAVE_STRUCT_STAT_ST_BLOCKS
if(new_file->stat.st_blksize!=0)