From b53e909d11d42042f0a6847b2650458d1385c489 Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Thu, 16 Mar 1995 17:11:21 +0000 Subject: Fix long-standing core dump when ld returns failure. --- sbin/modload/modload.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin') diff --git a/sbin/modload/modload.c b/sbin/modload/modload.c index 1901ee65ca71..4787f11b9563 100644 --- a/sbin/modload/modload.c +++ b/sbin/modload/modload.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: modload.c,v 1.5 1994/09/24 03:18:32 wollman Exp $ + * $Id: modload.c,v 1.6 1995/01/23 04:07:57 wollman Exp $ */ #include @@ -116,7 +116,7 @@ linkcmd(kernel, entry, outfile, address, object) } if(WEXITSTATUS(status) != 0) { - errx(1, "%s: return code %d", WEXITSTATUS(status)); + errx(1, "%s: return code %d", _PATH_LD, WEXITSTATUS(status)); } } -- cgit v1.2.3