gcov: create folders with 0777.

libgcc/ChangeLog:

	PR gcov-profile/96035
	* libgcov-driver-system.c: Create gcov folders with 0777
	so that it respects a system umask.
This commit is contained in:
Martin Liska 2020-07-10 10:56:34 +02:00
parent 02cada26e4
commit 24c35a5ef3
No known key found for this signature in database
GPG Key ID: 4DC182DC0FA73785
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ create_file_directory (char *filename)
/* Try to make directory if it doesn't already exist. */
if (access (filename, F_OK) == -1
#ifdef TARGET_POSIX_IO
&& mkdir (filename, 0755) == -1
&& mkdir (filename, 0777) == -1
#else
#ifdef mkdir
#undef mkdir