]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix build problems on Solaris and OS X.
authorIvo Raisr <ivosh@ivosh.net>
Fri, 12 May 2017 01:37:33 +0000 (01:37 +0000)
committerIvo Raisr <ivosh@ivosh.net>
Fri, 12 May 2017 01:37:33 +0000 (01:37 +0000)
Follow up to SVN r16364.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16366

coregrind/m_commandline.c

index bccada7b362a9be922067ffa1f98d27dba013320..d89b6ac2dade5b4b68fafa6f9b22cb9c615dbc98 100644 (file)
@@ -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);