2008-04-19 Dmitry V. Levin <ldv@altlinux.org>
* desc.c (sys_fcntl): Do not initialize auxstr for failed syscall.
* process.c (sys_fork, sys_rfork) [USE_PROCFS]: Likewise.
* signal.c (sys_signal): Likewise.
* stream.c (internal_stream_ioctl): Likewise.
* time.c (sys_adjtimex): Likewise.
* syscall.c (trace_syscall): If RVAL_STR is set, then
print auxstr for failed syscall as well.
diff --git a/syscall.c b/syscall.c
index f1b7054..3c1c9f8 100644
--- a/syscall.c
+++ b/syscall.c
@@ -2369,6 +2369,8 @@
strerror(u_error));
break;
}
+ if ((sys_res & RVAL_STR) && tcp->auxstr)
+ tprintf(" (%s)", tcp->auxstr);
}
else {
if (sys_res & RVAL_NONE)