X-Git-Url: https://git.saurik.com/apple/system_cmds.git/blobdiff_plain/faa687fed273e36ee92ac51d06a94d786084a3b0..887d5eedc67e1d6b5933393070e765bc7739453c:/sysctl.tproj/sysctl.c diff --git a/sysctl.tproj/sysctl.c b/sysctl.tproj/sysctl.c index 30b066b..606459a 100644 --- a/sysctl.tproj/sysctl.c +++ b/sysctl.tproj/sysctl.c @@ -680,6 +680,9 @@ oidfmt(int *oid, int len, char *fmt, u_int *kind) } } else if (buf[sizeof(u_int)] == 'L') { *kind = (*kind & ~CTLTYPE) | CTLTYPE_LONG; + if (buf[sizeof(u_int)+1] == 'U') { + *kind = (*kind & ~CTLTYPE) | CTLTYPE_ULONG; + } } break; case CTLTYPE_QUAD: