소스 검색

(main): Call closeopen

Sergey Poznyakoff 18 년 전
부모
커밋
1421ee630d
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/tar.c

+ 3 - 0
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;