Merge from old main.c rev 1.2: Don't set the umask until after we have

processed the arguments and opened the archive file.
This commit is contained in:
Tim J. Robbins 2005-10-01 05:49:29 +00:00
parent 56160607b6
commit 70a976e111

View File

@ -1,3 +1,5 @@
/* $FreeBSD$ */
/* main.c - main program and argument processing for cpio.
Copyright (C) 1990, 1991, 1992, 2001, 2003, 2004 Free Software Foundation, Inc.
@ -740,8 +742,7 @@ main (int argc, char *argv[])
textdomain (PACKAGE);
program_name = argv[0];
umask (0);
#ifdef __TURBOC__
_fmode = O_BINARY; /* Put stdin and stdout in binary mode. */
#endif
@ -751,6 +752,7 @@ main (int argc, char *argv[])
#endif
process_args (argc, argv);
umask (0);
initialize_buffers ();