diff options
-rw-r--r-- | archival/tar.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/archival/tar.c b/archival/tar.c index 120c77f3b..1c71f7f66 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -632,8 +632,7 @@ static void NOINLINE vfork_compressor(int tar_fd, const char *gzip) | |||
632 | * Swapping move_fd's order wouldn't work: | 632 | * Swapping move_fd's order wouldn't work: |
633 | * data.rd is 1 and _it_ would be destroyed. | 633 | * data.rd is 1 and _it_ would be destroyed. |
634 | */ | 634 | */ |
635 | xmove_fd(tfd, 3); | 635 | tfd = dup(tfd); |
636 | tfd = 3; | ||
637 | } | 636 | } |
638 | xmove_fd(data.rd, 0); | 637 | xmove_fd(data.rd, 0); |
639 | xmove_fd(tfd, 1); | 638 | xmove_fd(tfd, 1); |