From: Joerg Sonnenberger Date: Tue, 27 May 2008 15:01:41 +0000 (-0400) Subject: Between all the false cases found by Coverity, one is actual X-Git-Tag: v2.6.0~194 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e1b1b0cadd2698a96d7499930b89bcd9d2539f08;p=thirdparty%2Flibarchive.git 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 --- 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 {