diff options
author | Brian Behlendorf <[email protected]> | 2011-04-29 14:03:12 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-04-29 14:03:12 -0700 |
commit | 94e954257acadca5d858741457282c63bb18c442 (patch) | |
tree | 6ffd2db4ce12a1ef573b52db5acfbbc7a88835e0 /lib/libspl | |
parent | 055656d4f4dfc1a85646a2c0cc10b9dce86da72b (diff) |
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
Diffstat (limited to 'lib/libspl')
-rw-r--r-- | lib/libspl/include/sys/param.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libspl/include/sys/param.h b/lib/libspl/include/sys/param.h index 3efb56ed4..75cf0b757 100644 --- a/lib/libspl/include/sys/param.h +++ b/lib/libspl/include/sys/param.h @@ -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)) |