Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpipe-fd: stderr is merged with stdout, possible corruption.
When changing from using popen() to open_bpipe() it was overlooked that popen() just ignores stderr but open_bpipe() dups both stdout and stderr onto the read pipe used. This patch adds a flag to open_bpipe() which is by default set to true to dup stderr or not. For now this fixes the problem but a better solution could probably be coded by adding an extra member to the BPIPE class with the name efd which is the error handle just as we now have a write and read handle. Fixes #632: fd-bpipe plugin merges stderr with stdout, which can result in corrupted backups.
- Loading branch information
Marco van Wieringen
committed
Mar 11, 2016
1 parent
fab6ead
commit 747d34c
Showing
3 changed files
with
72 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters