If we annoy user with the terminal output due to failed load of

interpreter, also show the actual error code instead of some
interpretation.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2015-12-22 20:12:52 +00:00
parent 418629d81d
commit d943fa35ad

View File

@ -1009,7 +1009,8 @@ __CONCAT(exec_, __elfN(imgact))(struct image_params *imgp)
}
vn_lock(imgp->vp, LK_EXCLUSIVE | LK_RETRY);
if (error != 0) {
uprintf("ELF interpreter %s not found\n", interp);
uprintf("ELF interpreter %s not found, error %d\n",
interp, error);
goto ret;
}
} else