|
From: <sv...@va...> - 2008-08-19 08:31:55
|
Author: sewardj
Date: 2008-08-19 09:32:03 +0100 (Tue, 19 Aug 2008)
New Revision: 8523
Log:
Tidy up VG_(stat) usage in VG_(check_executable). Followup to r8522.
Modified:
trunk/coregrind/m_libcfile.c
Modified: trunk/coregrind/m_libcfile.c
===================================================================
--- trunk/coregrind/m_libcfile.c 2008-08-19 07:03:04 UTC (rev 8522)
+++ trunk/coregrind/m_libcfile.c 2008-08-19 08:32:03 UTC (rev 8523)
@@ -401,17 +401,8 @@
Int VG_(check_executable)(/*OUT*/Bool* is_setuid,
HChar* f, Bool allow_setuid)
{
- /* This is something of a kludge. Really we should fix VG_(stat) to
- do this itself, but not clear how to do it as it depends on
- having a 'struct vki_stat64' which is different from 'struct
- vki_stat'. */
-# if defined(VGO_linux) && defined(__NR_stat64)
- struct vki_stat64 st;
- SysRes res = VG_(do_syscall2)(__NR_stat64, (UWord)f, (UWord)&st);
-# else
- struct vki_stat st;
+ struct vg_stat st;
SysRes res = VG_(stat)(f, &st);
-# endif
if (is_setuid)
*is_setuid = False;
|