summaryrefslogtreecommitdiffstats
path: root/src/phrecn.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-12-08 18:01:42 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2012-12-08 18:01:42 +0100
commitda6fe469c456e92aa4460b97a692fdd64b90043f (patch)
tree87072dbe21f9d5efe6d037b2e56b2a80b0233453 /src/phrecn.c
parent4ab4b390670703606b43791b2a03e3cbc1d56378 (diff)
Windows: workaround for NTFS Alternate Data Stream creation
fopen() creates normal files instead of ADS with ':' replaced by an UTF char replace ':' by '_' instead
Diffstat (limited to 'src/phrecn.c')
-rw-r--r--src/phrecn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/phrecn.c b/src/phrecn.c
index 52dc519..3716924 100644
--- a/src/phrecn.c
+++ b/src/phrecn.c
@@ -363,7 +363,7 @@ static int photorec_aux(struct ph_param *params, const struct ph_options *option
{
if(fwrite(buffer,blocksize,1,file_recovery.handle)<1)
{
- log_critical("Cannot write to file %s:%s\n", file_recovery.filename, strerror(errno));
+ log_critical("Cannot write to file %s: %s\n", file_recovery.filename, strerror(errno));
if(errno==EFBIG)
{
/* File is too big for the destination filesystem */
@@ -619,7 +619,7 @@ static void gen_image(const char *filename, disk_t *disk, const alloc_data_t *li
disk->pread(disk, buffer, read_size, offset);
if(fwrite(buffer, read_size, 1, out)<1)
{
- log_critical("Cannot write to file %s:%s\n", filename, strerror(errno));
+ log_critical("Cannot write to file %s: %s\n", filename, strerror(errno));
free(buffer);
fclose(out);
return ;
@@ -699,7 +699,7 @@ static void test_files_aux(file_recovery_t *file_recovery, struct ph_param *para
}
if(fwrite(buffer, datasize, 1, file_recovery->handle)<1)
{
- log_critical("Cannot write to file %s:%s\n", file_recovery->filename, strerror(errno));
+ log_critical("Cannot write to file %s: %s\n", file_recovery->filename, strerror(errno));
fclose(file_recovery->handle);
file_recovery->handle=NULL;
free(buffer);