summaryrefslogtreecommitdiff
path: root/archivers/gcpio/patches/patch-ah
blob: cb67fa554f9ea5346342b748aeec7f41d9520760 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-ah,v 1.1 2005/03/20 19:53:09 salo Exp $

--- main.c.orig	2001-12-06 05:54:06.000000000 +0100
+++ main.c	2005-03-20 20:34:33.000000000 +0100
@@ -512,7 +512,6 @@
      char *argv[];
 {
   program_name = argv[0];
-  umask (0);
 
 #ifdef __TURBOC__
   _fmode = O_BINARY;		/* Put stdin and stdout in binary mode.  */
@@ -523,6 +522,7 @@
 #endif
 
   process_args (argc, argv);
+  umask (0);
 
   initialize_buffers ();