convert: remove erroneous tests for errno == EPIPE
start_multi_file_filter() and apply_multi_file_filter() currently test for errno == EPIPE but treating EPIPE as an error is already happening from one of the packet_write() functions. Signed-off-by: Ben Peart <benpeart@microsoft.com> Found/Fixed-by: Jeff King <peff@peff.net> Acked-by: Lars Schneider <larsxschneider@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ben Peart committed
May 5, 2017 at 11:27 UTC
070e5f72d9d6f0056895bd3222e75f8075ed4c0e
1 file changed
+2
-2
convert.c
+2
-2
@@ -661,7 +661,7 @@ static struct cmd2process *start_multi_file_filter(struct hashmap *hashmap, cons
661
done:
662
sigchain_pop(SIGPIPE);
663
664
- if (err || errno == EPIPE) {
664
+ if (err) {
665
error("initialization for external filter '%s' failed", cmd);
666
kill_multi_file_filter(hashmap, entry);
667
return NULL;
@@ -752,7 +752,7 @@ static int apply_multi_file_filter(const char *path, const char *src, size_t len
752
done:
753
sigchain_pop(SIGPIPE);
754
755
- if (err || errno == EPIPE) {
755
+ if (err) {
756
if (!strcmp(filter_status.buf, "error")) {
757
/* The filter signaled a problem with the file. */
758
} else if (!strcmp(filter_status.buf, "abort")) {