]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add comment about 32-bit UIDs/GIDs.
authorNicholas Nethercote <njn@valgrind.org>
Tue, 23 Oct 2007 22:26:12 +0000 (22:26 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Tue, 23 Oct 2007 22:26:12 +0000 (22:26 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7030

coregrind/m_libcproc.c

index cdf7d6f478b0d867044e805e2591f750e31d4301..5c9b345aae3735b25f62bfba6f8eef589e52c189 100644 (file)
@@ -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;