Correct MAXUID
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 29 Apr 2011 21:03:12 +0000 (14:03 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 29 Apr 2011 21:03:12 +0000 (14:03 -0700)
The uid_t on most systems is in fact and unsigned 32-bit value.
This is almost always correct, however you could compile your
kernel to use an unsigned 16-bit value for uid_t.  In practice
I've never encountered a distribution which does this so I'm
willing to overlook this corner case for now.

Closes #165

lib/libspl/include/sys/param.h

index 3efb56e..75cf0b7 100644 (file)
@@ -54,7 +54,7 @@
 #define GID_NOBODY      UID_NOBODY
 #define UID_NOACCESS    60002   /* user ID no access */
 
-#define MAXUID          2147483647      /* max user id */
+#define MAXUID          UINT32_MAX      /* max user id */
 #define MAXPROJID       MAXUID          /* max project id */
 
 #define PAGESIZE (sysconf(_SC_PAGESIZE))