From: Ivo Raisr Date: Fri, 12 May 2017 01:37:33 +0000 (+0000) Subject: Fix build problems on Solaris and OS X. X-Git-Tag: svn/VALGRIND_3_13_0~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b12d0e1993049d73773d7bec84b5c07a1fb63ae;p=thirdparty%2Fvalgrind.git Fix build problems on Solaris and OS X. Follow up to SVN r16364. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16366 --- diff --git a/coregrind/m_commandline.c b/coregrind/m_commandline.c index bccada7b36..d89b6ac2da 100644 --- a/coregrind/m_commandline.c +++ b/coregrind/m_commandline.c @@ -71,7 +71,7 @@ static HChar* read_dot_valgrindrc ( const HChar* dir ) or is world writeable (CVE-2008-4865). */ if (res == 0 && stat_buf.uid == VG_(geteuid)() - && (stat_buf.mode & VKI_S_IFREG) + && VKI_S_ISREG(stat_buf.mode) && !(stat_buf.mode & VKI_S_IWOTH)) { if ( stat_buf.size > 0 ) { f_clo = VG_(malloc)("commandline.rdv.1", stat_buf.size+1);