From e1b1b0cadd2698a96d7499930b89bcd9d2539f08 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Tue, 27 May 2008 11:01:41 -0400 Subject: [PATCH] Between all the false cases found by Coverity, one is actual relevant: after closing child_stdin, set it to -1, keeping child_stdout alone and not the other way around. SVN-Revision: 98 --- libarchive/archive_read_support_compression_program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libarchive/archive_read_support_compression_program.c b/libarchive/archive_read_support_compression_program.c index 9d3e2d035..4c5c69bc4 100644 --- a/libarchive/archive_read_support_compression_program.c +++ b/libarchive/archive_read_support_compression_program.c @@ -198,7 +198,7 @@ restart_read: goto restart_read; } else if (ret == 0 || (ret == -1 && errno == EPIPE)) { close(state->child_stdin); - state->child_stdout = -1; + state->child_stdin = -1; fcntl(state->child_stdout, F_SETFL, 0); goto restart_read; } else { -- 2.47.3