Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Correct MAXUID

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
  • Loading branch information...
commit 94e954257acadca5d858741457282c63bb18c442 1 parent 055656d
Brian Behlendorf behlendorf authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/libspl/include/sys/param.h
2  lib/libspl/include/sys/param.h
@@ -54,7 +54,7 @@
#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))
Please sign in to comment.
Something went wrong with that request. Please try again.