]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make xtree dump files world wide readable, similar to log files.
authorIvo Raisr <ivosh@ivosh.net>
Mon, 19 Feb 2018 09:24:52 +0000 (10:24 +0100)
committerIvo Raisr <ivosh@ivosh.net>
Mon, 19 Feb 2018 09:24:52 +0000 (10:24 +0100)
Fixes BZ#390723.

NEWS
coregrind/m_xtree.c

diff --git a/NEWS b/NEWS
index e05291f40d8fa18713c99cf0296548d6dea13bd3..3a180e91ff9d12cec06fda5f9d4a984dac200374 100644 (file)
--- 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
index 7d57662226783e9e8c9eb6eb1c2ba303cc8c34fb..217cad9da5cc5ceb7d6d2cf8f211cbffcd5d3aec 100644 (file)
@@ -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",