Don't set the umask until after we have processed the arguments

and opened the archive file.  This allows "cpio -o -O output_file"
to create the output file with the callers proper umask.
Closes PR# 1391.
This commit is contained in:
Mike Pritchard 1997-02-25 06:11:19 +00:00
parent 25242c970a
commit aaefaad330
1 changed files with 1 additions and 1 deletions

View File

@ -459,7 +459,6 @@ main (argc, argv)
char *argv[];
{
program_name = argv[0];
umask (0);
#ifdef __FreeBSD__
(void) setlocale (LC_ALL, "");
@ -473,6 +472,7 @@ main (argc, argv)
#endif
process_args (argc, argv);
umask (0);
initialize_buffers ();