Fix decoding of setpriority() arguments.
The PRIO_* 'which' value is stored in the first argument to setpriority(2), not the last. While here, decode the arguments to getpriority(2).
This commit is contained in:
parent
0241533b04
commit
ac38c7be96
@ -1060,11 +1060,11 @@ ktrsyscall(struct ktr_syscall *ktr, u_int sv_flags)
|
|||||||
ip++;
|
ip++;
|
||||||
narg--;
|
narg--;
|
||||||
break;
|
break;
|
||||||
|
case SYS_getpriority:
|
||||||
case SYS_setpriority:
|
case SYS_setpriority:
|
||||||
print_number(ip, narg, c);
|
putchar('(');
|
||||||
print_number(ip, narg, c);
|
|
||||||
putchar(',');
|
|
||||||
print_integer_arg(sysdecode_prio_which, *ip);
|
print_integer_arg(sysdecode_prio_which, *ip);
|
||||||
|
c = ',';
|
||||||
ip++;
|
ip++;
|
||||||
narg--;
|
narg--;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user