From 3b12d0e1993049d73773d7bec84b5c07a1fb63ae Mon Sep 17 00:00:00 2001 From: Ivo Raisr Date: Fri, 12 May 2017 01:37:33 +0000 Subject: [PATCH] Fix build problems on Solaris and OS X. Follow up to SVN r16364. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16366 --- coregrind/m_commandline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2