summaryrefslogtreecommitdiffstats
path: root/src/ntfs_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-11-16 12:45:19 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2008-11-16 12:45:19 +0100
commit8453cfff02206ad932e8ddd3c24b34aa7c42af62 (patch)
tree4ba3e71e551023fc1c73f75483f17aa6adcfc7cd /src/ntfs_dir.c
parentaf127dc90c383786b598d8fce215aa8c4d03b233 (diff)
When copying filenames, try to deal more efficently with filename restriction
Diffstat (limited to 'src/ntfs_dir.c')
-rw-r--r--src/ntfs_dir.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ntfs_dir.c b/src/ntfs_dir.c
index 1ac3442..e13b7d4 100644
--- a/src/ntfs_dir.c
+++ b/src/ntfs_dir.c
@@ -358,8 +358,7 @@ static int ntfs_copy(disk_t *disk_car, const partition_t *partition, dir_data_t
block_size = index_get_size(inode);
else
block_size = 0;
- new_file=gen_local_filename(dir_data->local_dir, dir_data->current_directory);
- f_out=create_file(new_file);
+ f_out=fopen_local(&new_file, dir_data->local_dir, dir_data->current_directory);
if(!f_out)
{
log_critical("Can't create file %s: %s\n",new_file, strerror(errno));