From: deraadt Date: Sun, 4 Feb 2018 20:41:58 +0000 (+0000) Subject: Expand Type strings by one space, to fit ld.so, in the same ugly way "exe " X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9777ac55f38e4edc06b199d422c94143d6cace3c;p=openbsd Expand Type strings by one space, to fit ld.so, in the same ugly way "exe " was being handled. --- diff --git a/libexec/ld.so/dlfcn.c b/libexec/ld.so/dlfcn.c index 8a6eab81ac1..d6498bfac15 100644 --- a/libexec/ld.so/dlfcn.c +++ b/libexec/ld.so/dlfcn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dlfcn.c,v 1.100 2017/12/08 05:25:20 deraadt Exp $ */ +/* $OpenBSD: dlfcn.c,v 1.101 2018/02/04 20:41:58 deraadt Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -495,7 +495,7 @@ _dl_show_objects(void) "\t%x %e %t %O %r %g %p\n"; if (_dl_tracefmt1 == NULL && _dl_tracefmt2 == NULL) - _dl_dprintf(outputfd, "\tStart %s End %s Type Open Ref GrpRef Name\n", + _dl_dprintf(outputfd, "\tStart %s End %s Type Open Ref GrpRef Name\n", pad, pad); if (_dl_tracelib) { @@ -512,16 +512,16 @@ _dl_show_objects(void) objtypename = "ld.so"; break; case OBJTYPE_EXE: - objtypename = "exe "; + objtypename = "exe "; break; case OBJTYPE_LIB: - objtypename = "rlib"; + objtypename = "rlib "; break; case OBJTYPE_DLO: - objtypename = "dlib"; + objtypename = "dlib "; break; default: - objtypename = "????"; + objtypename = "?????"; break; } _dl_tracefmt(outputfd, object, fmt1, fmt2, objtypename);