mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-09-05 07:46:54 +00:00
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:
@@ -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. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user