projects
/
debian
/
tar
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
983d328
)
(main): Move closeopen after decode_options to allow shell process substitution to...
author
Sergey Poznyakoff
<gray@gnu.org.ua>
Tue, 3 Apr 2007 12:18:40 +0000
(12:18 +0000)
committer
Sergey Poznyakoff
<gray@gnu.org.ua>
Tue, 3 Apr 2007 12:18:40 +0000
(12:18 +0000)
src/tar.c
patch
|
blob
|
history
diff --git
a/src/tar.c
b/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. */