Skip to content

Instantly share code, notes, and snippets.

@sophiebits
Created January 4, 2009 07:51
Show Gist options
  • Save sophiebits/43022 to your computer and use it in GitHub Desktop.
Save sophiebits/43022 to your computer and use it in GitHub Desktop.
--- a/gcc-4.3.2/gcc/gcov-io.c
+++ b/gcc-4.3.2/gcc/gcov-io.c
@@ -83,7 +83,7 @@
#endif
#if GCOV_LOCKED
if (mode > 0)
- fd = open (name, O_RDWR);
+ fd = open (name, O_RDWR, 0666);
else
fd = open (name, O_RDWR | O_CREAT, 0666);
if (fd < 0)
--- a/gcc-4.3.2/gcc/libgcov.c
+++ b/gcc-4.3.2/gcc/libgcov.c
@@ -109,7 +109,7 @@
/* Try to make directory if it doesn't already exist. */
if (access (filename, F_OK) == -1
- && mkdir (filename, 0755) == -1
+ && mkdir (filename) == -1
/* The directory might have been made by another process. */
&& errno != EEXIST)
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment