|
From: <sv...@va...> - 2007-10-23 22:26:10
|
Author: njn
Date: 2007-10-23 23:26:12 +0100 (Tue, 23 Oct 2007)
New Revision: 7030
Log:
Add comment about 32-bit UIDs/GIDs.
Modified:
trunk/coregrind/m_libcproc.c
Modified: trunk/coregrind/m_libcproc.c
===================================================================
--- trunk/coregrind/m_libcproc.c 2007-10-23 08:16:01 UTC (rev 7029)
+++ trunk/coregrind/m_libcproc.c 2007-10-23 22:26:12 UTC (rev 7030)
@@ -429,6 +429,8 @@
# if defined(VGP_ppc32_aix5) || defined(VGP_ppc64_aix5)
return VG_(do_syscall1)(__NR_AIX5_getuidx, 1) . res;
# elif defined(__NR_geteuid32)
+ // We use the 32-bit version if it's supported. Otherwise, IDs greater
+ // than 65536 cause problems, as bug #151209 showed.
return VG_(do_syscall0)(__NR_geteuid32) . res;
# else
return VG_(do_syscall0)(__NR_geteuid) . res;
@@ -441,6 +443,8 @@
# if defined(VGP_ppc32_aix5) || defined(VGP_ppc64_aix5)
return VG_(do_syscall1)(__NR_AIX5_getgidx, 1) . res;
# elif defined(__NR_getegid32)
+ // We use the 32-bit version if it's supported. Otherwise, IDs greater
+ // than 65536 cause problems, as bug #151209 showed.
return VG_(do_syscall0)(__NR_getegid32) . res;
# else
return VG_(do_syscall0)(__NR_getegid) . res;
|