]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(tac_nonseekable): Return false also if copy_to_temp fails.
authorJim Meyering <jim@meyering.net>
Tue, 14 Dec 2004 09:52:58 +0000 (09:52 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 14 Dec 2004 09:52:58 +0000 (09:52 +0000)
src/tac.c

index 71bf752d4739410968b83708cf18b78c6788ce40..ba206c1eff19f7118efffbc7e3dba2ac5e603200 100644 (file)
--- 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