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
595d629c09
commit
9483ab16d4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=319761
@ -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…
Reference in New Issue
Block a user