summaryrefslogtreecommitdiffstats
path: root/src/rfs_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/rfs_dir.c
parentb555b3a4f62847a5e27173fc48548d5574fe37d1 (diff)
Workaround for Dos/DJGPP, stat.st_size seems to be 31 bits only.
Diffstat (limited to 'src/rfs_dir.c')
-rw-r--r--src/rfs_dir.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rfs_dir.c b/src/rfs_dir.c
index 9fb54fa..74efbd3 100644
--- a/src/rfs_dir.c
+++ b/src/rfs_dir.c
@@ -450,6 +450,9 @@ static file_data_t *reiser_dir(disk_t *disk_car, const partition_t *partition, d
new_file->prev=ls->current_file;
new_file->next=NULL;
new_file->stat.st_size=entity->stat.st_size;
+#ifdef DJGPP
+ new_file->file_size=entity->stat.st_size;
+#endif
memcpy(&new_file->stat,&entity->stat,sizeof(new_file->stat));
reiserfs_object_free(entity);
if(ls->current_file)