diff options
author | Jim Meyering <jim@meyering.net> | 2004-12-14 09:52:58 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-12-14 09:52:58 +0000 |
commit | ab8392641b7f05970787c11dd87de7aed37c5dab (patch) | |
tree | 69f794583e5fb24194ca6ed502649ae70c203900 | |
parent | 7f44c8d24ef5b9c0e0c8764455be7d9a35d137dc (diff) | |
download | coreutils-ab8392641b7f05970787c11dd87de7aed37c5dab.tar.xz |
(tac_nonseekable): Return false also if copy_to_temp fails.
-rw-r--r-- | src/tac.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |