1
0
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:
Dag-Erling Smørgrav 2001-11-17 17:18:36 +00:00
parent d5abb1e452
commit 6b9c8e04f9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=86501
2 changed files with 4 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}