Commits

Armin Rigo committed c608917

The uid and gid are unsigned integers, not signed integers.
This is important on MacOSX, where e.g. "nobody" has a uid
of 2**32-2.

  • Participants
  • Parent commits d68c0f3

Comments (0)

Files changed (1)

     raise ImportError("No pwd module on Windows")
 
 from ctypes_support import standard_c_lib as libc
-from ctypes import Structure, POINTER, c_int, c_char_p, c_long
+from ctypes import Structure, POINTER, c_int, c_char_p, c_long, c_uint
 
 try: from __pypy__ import builtinify
 except ImportError: builtinify = lambda f: f
 
 
-uid_t = c_int
-gid_t = c_int
+uid_t = c_uint
+gid_t = c_uint
 time_t = c_long
 
 if sys.platform == 'darwin':