(main): Move closeopen after decode_options to allow shell process substitution to work.

This commit is contained in:
Sergey Poznyakoff
2007-04-03 12:18:40 +00:00
parent 983d328ff2
commit d989864712

View File

@@ -2302,9 +2302,6 @@ main (int argc, char **argv)
/* Make sure we have first three descriptors available */
stdopen ();
/* Close all inherited open descriptors, except for the first three */
closeopen ();
/* Pre-allocate a few structures. */
allocated_archive_names = 10;
@@ -2322,6 +2319,10 @@ main (int argc, char **argv)
/* Decode options. */
decode_options (argc, argv);
/* Close all inherited open descriptors, except for the first three */
closeopen ();
name_init ();
/* Main command execution. */