defuzz sys_umask patch

This commit is contained in:
Ondrej Vasik 2010-03-11 13:54:23 +00:00
parent 9aeb2ae9a5
commit 121c7e0916

View File

@ -26,8 +26,8 @@ diff -urp cpio-2.9.90-orig/src/main.c cpio-2.9.90/src/main.c
--- cpio-2.9.90-orig/src/main.c 2008-08-25 16:42:48.000000000 +0200
+++ cpio-2.9.90/src/main.c 2009-02-10 17:44:47.000000000 +0100
@@ -790,6 +790,7 @@ main (int argc, char *argv[])
program_name = argv[0];
set_program_name (argv[0]);
argp_version_setup ("cpio", program_authors);
process_args (argc, argv);
+ sys_umask = umask(0);