diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-02-21 16:13:23 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-02-21 16:13:38 +0000 |
commit | 8d5e33286b086ade0252489ca201eb1aa061c5dc (patch) | |
tree | ab7905d319ede338e79626e6b5e21705c90c1a2a /dump_remove.cc | |
parent | Releasing debian version 1.22-3. (diff) | |
download | lziprecover-8d5e33286b086ade0252489ca201eb1aa061c5dc.tar.xz lziprecover-8d5e33286b086ade0252489ca201eb1aa061c5dc.zip |
Merging upstream version 1.23.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dump_remove.cc')
-rw-r--r-- | dump_remove.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dump_remove.cc b/dump_remove.cc index d33551f..37f7f00 100644 --- a/dump_remove.cc +++ b/dump_remove.cc @@ -1,5 +1,5 @@ /* Lziprecover - Data recovery tool for the lzip format - Copyright (C) 2009-2021 Antonio Diaz Diaz. + Copyright (C) 2009-2022 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 @@ -48,6 +48,8 @@ int dump_members( const std::vector< std::string > & filenames, set_signal_handler(); if( !open_outstream( force, false, false, false ) ) return 1; } + if( ( strip || !member_list.tdata || member_list.damaged || member_list.range() ) && + !check_tty_out() ) return 1; // check tty except for --dump=tdata unsigned long long copied_size = 0, stripped_size = 0; unsigned long long copied_tsize = 0, stripped_tsize = 0; long members = 0, smembers = 0; |