]> Dogcows Code - chaz/tar/commitdiff
(main): Call closeopen
authorSergey Poznyakoff <gray@gnu.org.ua>
Tue, 4 Jul 2006 21:52:14 +0000 (21:52 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Tue, 4 Jul 2006 21:52:14 +0000 (21:52 +0000)
src/tar.c

index f122f7abecfefe15c67a3a0eafb0f100405be05c..ff3c5c957cf4270426b940335c4181d50aeb37a9 100644 (file)
--- a/src/tar.c
+++ b/src/tar.c
@@ -2240,6 +2240,9 @@ 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;
This page took 0.025499 seconds and 4 git commands to generate.