mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-28 08:02:54 +00:00
Print the correct return code for successful Linux syscalls.
Submitted by: Vitezslav Novy <vita@fio.cz> PR: 32036 MFC after: 1 week
This commit is contained in:
parent
d5abb1e452
commit
6b9c8e04f9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=86501
@ -246,7 +246,8 @@ i386_linux_syscall_exit(int pid, int syscall) {
|
||||
if (retval == bsd_to_linux_errno[i])
|
||||
break;
|
||||
}
|
||||
print_syscall_ret(outfile, lsc.name, lsc.nargs, lsc.s_args, errorp, i);
|
||||
print_syscall_ret(outfile, lsc.name, lsc.nargs, lsc.s_args, errorp,
|
||||
errorp ? i : retval);
|
||||
clear_lsc();
|
||||
return;
|
||||
}
|
||||
|
@ -246,7 +246,8 @@ i386_linux_syscall_exit(int pid, int syscall) {
|
||||
if (retval == bsd_to_linux_errno[i])
|
||||
break;
|
||||
}
|
||||
print_syscall_ret(outfile, lsc.name, lsc.nargs, lsc.s_args, errorp, i);
|
||||
print_syscall_ret(outfile, lsc.name, lsc.nargs, lsc.s_args, errorp,
|
||||
errorp ? i : retval);
|
||||
clear_lsc();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user