bunpen: fix typo that prevented assigning caps >= 32
This commit is contained in:
@@ -358,11 +358,11 @@ export fn capset(eff: caps, prm: caps, inh: caps) (void | rt::errno) = {
|
|||||||
// the API has some legacy such that we have to provide the lower 32 caps and
|
// the API has some legacy such that we have to provide the lower 32 caps and
|
||||||
// the upper 32 separately:
|
// the upper 32 separately:
|
||||||
let eff_lo = (eff & 0xFFFFFFFF): u32;
|
let eff_lo = (eff & 0xFFFFFFFF): u32;
|
||||||
let eff_hi = ((eff << 32) & 0xFFFFFFFF): u32;
|
let eff_hi = ((eff >> 32) & 0xFFFFFFFF): u32;
|
||||||
let prm_lo = (prm & 0xFFFFFFFF): u32;
|
let prm_lo = (prm & 0xFFFFFFFF): u32;
|
||||||
let prm_hi = ((prm << 32) & 0xFFFFFFFF): u32;
|
let prm_hi = ((prm >> 32) & 0xFFFFFFFF): u32;
|
||||||
let inh_lo = (inh & 0xFFFFFFFF): u32;
|
let inh_lo = (inh & 0xFFFFFFFF): u32;
|
||||||
let inh_hi = ((inh << 32) & 0xFFFFFFFF): u32;
|
let inh_hi = ((inh >> 32) & 0xFFFFFFFF): u32;
|
||||||
let data: [2]user_cap_data = [
|
let data: [2]user_cap_data = [
|
||||||
(user_cap_data {
|
(user_cap_data {
|
||||||
effective = eff_lo,
|
effective = eff_lo,
|
||||||
|
Reference in New Issue
Block a user