From c014c2c43669106b4e2aeb6203a2fbe9e3e4ff48 Mon Sep 17 00:00:00 2001 From: Ivo Raisr Date: Mon, 19 Feb 2018 10:24:52 +0100 Subject: [PATCH] Make xtree dump files world wide readable, similar to log files. Fixes BZ#390723. --- NEWS | 1 + coregrind/m_xtree.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index e05291f40d..3a180e91ff 100644 --- a/NEWS +++ b/NEWS @@ -90,6 +90,7 @@ where XXXXXX is the bug number as listed below. 387712 s390x cgijnl reports Conditional jump depends on uninitialised value 387773 .gnu_debugaltlink paths resolve relative to .debug file, not symlink 389065 valgrind meets gcc flag -Wlogical-op +390723 make xtree dump files world wide readable, similar to log files n-i-bz Fix missing workq_ops operations (macOS) n-i-bz fix bug in strspn replacement diff --git a/coregrind/m_xtree.c b/coregrind/m_xtree.c index 7d57662226..217cad9da5 100644 --- a/coregrind/m_xtree.c +++ b/coregrind/m_xtree.c @@ -377,7 +377,7 @@ static VgFile* xt_open (const HChar* outfilename) VgFile* fp; fp = VG_(fopen)(outfilename, VKI_O_CREAT|VKI_O_WRONLY|VKI_O_TRUNC, - VKI_S_IRUSR|VKI_S_IWUSR); + VKI_S_IRUSR|VKI_S_IWUSR|VKI_S_IRGRP|VKI_S_IROTH); if (fp == NULL) { VG_(message)(Vg_UserMsg, "Error: can not open xtree output file `%s'\n", -- 2.47.2