summary refs log tree commit diff
path: root/elf/dl-profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-profile.c')
-rw-r--r--elf/dl-profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-profile.c b/elf/dl-profile.c
index 9a7e7265dd..031de2569f 100644
--- a/elf/dl-profile.c
+++ b/elf/dl-profile.c
@@ -261,7 +261,7 @@ _dl_start_profile (struct link_map *map, const char *output_dir)
 #else
 # define EXTRA_FLAGS
 #endif
-  fd = __open (filename, O_RDWR | O_CREAT EXTRA_FLAGS, 0666);
+  fd = __open (filename, O_RDWR | O_CREAT EXTRA_FLAGS, DEFFILEMODE);
   if (fd == -1)
     {
       /* We cannot write the profiling data so don't do anything.  */