|
From: <sv...@va...> - 2017-05-12 01:37:39
|
Author: iraisr
Date: Fri May 12 02:37:33 2017
New Revision: 16366
Log:
Fix build problems on Solaris and OS X.
Follow up to SVN r16364.
Modified:
trunk/coregrind/m_commandline.c
Modified: trunk/coregrind/m_commandline.c
==============================================================================
--- trunk/coregrind/m_commandline.c (original)
+++ trunk/coregrind/m_commandline.c Fri May 12 02:37:33 2017
@@ -71,7 +71,7 @@
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);
|