When reporting an error, print the errno value.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
This commit is contained in:
kib 2018-07-19 19:03:18 +00:00
parent 62957925d8
commit 16aa04d663

View File

@ -861,7 +861,8 @@ __CONCAT(exec_, __elfN(imgact))(struct image_params *imgp)
UIO_SYSSPACE, IO_NODELOCKED, td->td_ucred,
NOCRED, NULL, td);
if (error != 0) {
uprintf("i/o error PT_INTERP\n");
uprintf("i/o error PT_INTERP %d\n",
error);
goto ret;
}
interp_buf[interp_name_len] = '\0';