From: Jim Meyering Date: Tue, 14 Dec 2004 09:52:58 +0000 (+0000) Subject: (tac_nonseekable): Return false also if copy_to_temp fails. X-Git-Tag: v5.3.0~139 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ab8392641b7f05970787c11dd87de7aed37c5dab;p=thirdparty%2Fcoreutils.git (tac_nonseekable): Return false also if copy_to_temp fails. --- diff --git a/src/tac.c b/src/tac.c index 71bf752d47..ba206c1eff 100644 --- a/src/tac.c +++ b/src/tac.c @@ -501,8 +501,8 @@ tac_nonseekable (int input_fd, const char *file) { FILE *tmp_stream; char *tmp_file; - copy_to_temp (&tmp_stream, &tmp_file, input_fd, file); - return tac_seekable (fileno (tmp_stream), tmp_file); + return (copy_to_temp (&tmp_stream, &tmp_file, input_fd, file) + && tac_seekable (fileno (tmp_stream), tmp_file)); } /* Print FILE in reverse, copying it to a temporary