summaryrefslogtreecommitdiffstats
path: root/src/phbf.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/phbf.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/phbf.c')
-rw-r--r--src/phbf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/phbf.c b/src/phbf.c
index 3180a9f..160e5c1 100644
--- a/src/phbf.c
+++ b/src/phbf.c
@@ -253,7 +253,7 @@ int photorec_bf(struct ph_param *params, const struct ph_options *options, alloc
{
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));
ind_stop=3;
}
}
@@ -386,7 +386,7 @@ static int photorec_bf_pad(struct ph_param *params, file_recovery_t *file_recove
}
if(fwrite(block_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));
fclose(file_recovery->handle);
file_recovery->handle=NULL;
return BF_ERR_STOP;
@@ -413,7 +413,7 @@ static int photorec_bf_pad(struct ph_param *params, file_recovery_t *file_recove
params->disk->pread(params->disk, block_buffer, blocksize, *offset);
if(fwrite(block_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));
fclose(file_recovery->handle);
file_recovery->handle=NULL;
return BF_ERR_STOP;
@@ -544,7 +544,7 @@ static int photorec_bf_frag_fast(struct ph_param *params, file_recovery_t *file_
}
if(fwrite(block_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));
fclose(file_recovery->handle);
file_recovery->handle=NULL;
return BF_ERR_STOP;
@@ -811,7 +811,7 @@ static int photorec_bf_aux(struct ph_param *params, file_recovery_t *file_recove
/* FIXME: Handle ext2/ext3 */
if(fwrite(block_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));
fclose(file_recovery->handle);
file_recovery->handle=NULL;
free(buffer);