From: Florian Krohm Date: Wed, 7 Jan 2015 14:47:15 +0000 (+0000) Subject: When creating a log-file (xml or otherwise) give everybody X-Git-Tag: svn/VALGRIND_3_11_0~731 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=509348583a4b01d885afbd7a32ece9d14a48d174;p=thirdparty%2Fvalgrind.git When creating a log-file (xml or otherwise) give everybody read permission. Previously, only user could read which was incovenient for some typical workflows. Suggested in BZ #339542. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14855 --- diff --git a/coregrind/m_main.c b/coregrind/m_main.c index 743ecde233..b7b1781bff 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -1015,7 +1015,7 @@ void main_process_cmd_line_options ( /*OUT*/Bool* logging_to_fd, log_fsname_unexpanded); sres = VG_(open)(logfilename, 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 (!sr_isError(sres)) { tmp_log_fd = sr_Res(sres); VG_(clo_log_fname_expanded) = logfilename; @@ -1074,7 +1074,7 @@ void main_process_cmd_line_options ( /*OUT*/Bool* logging_to_fd, xml_fsname_unexpanded); sres = VG_(open)(xmlfilename, 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 (!sr_isError(sres)) { tmp_xml_fd = sr_Res(sres); VG_(clo_xml_fname_expanded) = xmlfilename;