Use stdopen from gnulib

* gnulib.modules: Request stdopen
* lib/Makefile.am: Remove stdopen.c and stdopen.h
* lib/stdopen.c: Remove.
* lib/stdopen.h: Remove.
* src/tar.c: stdopen returns 0 on success.
This commit is contained in:
Sergey Poznyakoff
2021-01-08 18:50:57 +02:00
parent e4d1edadef
commit 0b43ea2906
5 changed files with 4 additions and 104 deletions
+3 -3
View File
@@ -2753,9 +2753,9 @@ main (int argc, char **argv)
close_stdout_set_file_name (_("stdout"));
/* Make sure we have first three descriptors available */
if (!stdopen ())
FATAL_ERROR ((0, errno, "%s",
_("failed to ensure first three descriptors are available")));
if (stdopen ())
FATAL_ERROR ((0, 0, "%s",
_("failed to assert availability of the standard file descriptors")));
/* Pre-allocate a few structures. */