Decode arguments to truncate and ftruncate.
In particular, decode the off_t argument as a 64-bit argument to fix decoding for 32-bit processes.
This commit is contained in:
parent
71ed318eb4
commit
8dec694290
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=306563
@ -1341,6 +1341,12 @@ ktrsyscall(struct ktr_syscall *ktr, u_int sv_flags)
|
||||
}
|
||||
ip++;
|
||||
narg--;
|
||||
break;
|
||||
case SYS_ftruncate:
|
||||
case SYS_truncate:
|
||||
print_number(ip, narg, c);
|
||||
print_number64(first, ip, narg, c);
|
||||
break;
|
||||
}
|
||||
}
|
||||
while (narg > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user