From: Ivo Raisr Date: Mon, 19 Feb 2018 09:24:52 +0000 (+0100) Subject: Make xtree dump files world wide readable, similar to log files. X-Git-Tag: VALGRIND_3_14_0~158 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c014c2c43669106b4e2aeb6203a2fbe9e3e4ff48;p=thirdparty%2Fvalgrind.git Make xtree dump files world wide readable, similar to log files. Fixes BZ#390723. --- 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",