]> Dogcows Code - chaz/tar/commitdiff
(main): Move closeopen after decode_options to allow shell process substitution to...
authorSergey Poznyakoff <gray@gnu.org.ua>
Tue, 3 Apr 2007 12:18:40 +0000 (12:18 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Tue, 3 Apr 2007 12:18:40 +0000 (12:18 +0000)
src/tar.c

index 90f65922e81c0d01b3fbce2397f3d00d6200945e..0b17359e986725108aef4dc726c375db51055c92 100644 (file)
--- a/src/tar.c
+++ b/src/tar.c
@@ -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.  */
This page took 0.023352 seconds and 4 git commands to generate.