mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(tac_nonseekable): Return false also if copy_to_temp fails.
This commit is contained in:
1 parent
7f44c8d24e
commit
ab8392641b
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user