diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 11:45:06 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 11:45:06 +0000 |
commit | 1ed437c55879912627b4f4fcd02cf07866cb48bb (patch) | |
tree | f418c22c84311ba379b907dd2bcf317ddb08a239 /repair.cc | |
parent | Adding upstream version 1.15. (diff) | |
download | lziprecover-1ed437c55879912627b4f4fcd02cf07866cb48bb.tar.xz lziprecover-1ed437c55879912627b4f4fcd02cf07866cb48bb.zip |
Adding upstream version 1.16~pre1.upstream/1.16_pre1
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'repair.cc')
-rw-r--r-- | repair.cc | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 ) |