summaryrefslogtreecommitdiffstats
path: root/repair.cc
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 11:45:12 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 11:45:12 +0000
commit2085b1344e4c2b3c4a3d21d4bc10227679a55507 (patch)
tree86328decac9bdf54fb41b6af1bd15b23fff1edd7 /repair.cc
parentAdding debian version 1.15-2. (diff)
downloadlziprecover-2085b1344e4c2b3c4a3d21d4bc10227679a55507.tar.xz
lziprecover-2085b1344e4c2b3c4a3d21d4bc10227679a55507.zip
Merging upstream version 1.16~pre1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-rw-r--r--repair.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/repair.cc b/repair.cc
index a31c3b7..92a417f 100644
--- a/repair.cc
+++ b/repair.cc
@@ -1,5 +1,5 @@
/* Lziprecover - Data recovery tool for lzip files
- Copyright (C) 2009, 2010, 2011, 2012, 2013 Antonio Diaz Diaz.
+ Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Antonio Diaz Diaz.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -54,12 +54,13 @@ int repair_file( const std::string & input_filename,
const bool force )
{
struct stat in_stats;
- const int infd = open_instream( input_filename, &in_stats, true, true );
+ const int infd = open_instream( input_filename.c_str(), &in_stats, true, true );
if( infd < 0 ) return 1;
+ Pretty_print pp( input_filename, verbosity );
const File_index file_index( infd );
if( file_index.retval() != 0 )
- { show_error( file_index.error().c_str() ); return file_index.retval(); }
+ { pp( file_index.error().c_str() ); return file_index.retval(); }
int outfd = -1;
for( int i = 0; i < file_index.members(); ++i )