From: Nicholas Nethercote Date: Tue, 23 Oct 2007 22:26:12 +0000 (+0000) Subject: Add comment about 32-bit UIDs/GIDs. X-Git-Tag: svn/VALGRIND_3_3_0~188 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4afc89b08cde8fbd6392c1b0a3b8be7d65bb9a1;p=thirdparty%2Fvalgrind.git Add comment about 32-bit UIDs/GIDs. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7030 --- diff --git a/coregrind/m_libcproc.c b/coregrind/m_libcproc.c index cdf7d6f478..5c9b345aae 100644 --- a/coregrind/m_libcproc.c +++ b/coregrind/m_libcproc.c @@ -429,6 +429,8 @@ Int VG_(geteuid) ( void ) # 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 @@ Int VG_(getegid) ( void ) # 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;