From 1421ee630dbefd54ff992056b875835062c596e9 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Tue, 4 Jul 2006 21:52:14 +0000 Subject: [PATCH] (main): Call closeopen --- src/tar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tar.c b/src/tar.c index f122f7a..ff3c5c9 100644 --- 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; -- 2.44.0