$OpenBSD: patch-gcc_fixinc_fixincl_c,v 1.1.1.1 2005/01/03 15:21:27 espie Exp $ --- gcc/fixinc/fixincl.c.orig Wed Dec 5 00:29:42 2001 +++ gcc/fixinc/fixincl.c Mon Jan 3 10:17:44 2005 @@ -568,7 +568,7 @@ create_file () sprintf (fname, "%s/%s", pz_dest_dir, pz_curr_file + find_base_len); - fd = open (fname, O_WRONLY | O_CREAT | O_TRUNC, S_IRALL); + fd = open (fname, O_WRONLY | O_CREAT | O_TRUNC, S_IRALL, 0666); /* We may need to create the directories needed... */ if ((fd < 0) && (errno == ENOENT)) @@ -589,7 +589,7 @@ create_file () } /* Now, lets try the open again... */ - fd = open (fname, O_WRONLY | O_CREAT | O_TRUNC, S_IRALL); + fd = open (fname, O_WRONLY | O_CREAT | O_TRUNC, S_IRALL, 0666); } if (fd < 0) {