Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/ld.elf_so If /etc/ld.so.conf contains an invalid sys...



details:   https://anonhg.NetBSD.org/src/rev/279d64cc9dd1
branches:  trunk
changeset: 534151:279d64cc9dd1
user:      abs <abs%NetBSD.org@localhost>
date:      Thu Jul 18 14:46:11 2002 +0000

description:
If /etc/ld.so.conf contains an invalid sysctl name any dynamically
executable that uses the library on that line has the rather cryptic
"sysctl" printed when it starts executing.

Switch to (_PATH_LD_HINTS": unknown sysctl for %s", name);

Discovered after someone copied /etc from an i386 to a sparc64 box.

diffstat:

 libexec/ld.elf_so/load.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r b7f45dee2435 -r 279d64cc9dd1 libexec/ld.elf_so/load.c
--- a/libexec/ld.elf_so/load.c  Thu Jul 18 14:44:10 2002 +0000
+++ b/libexec/ld.elf_so/load.c  Thu Jul 18 14:46:11 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: load.c,v 1.16 2002/06/01 23:50:53 lukem Exp $   */
+/*     $NetBSD: load.c,v 1.17 2002/07/18 14:46:11 abs Exp $     */
 
 /*
  * Copyright 1996 John D. Polstra.
@@ -191,7 +191,7 @@
                i = sizeof(val);
 
                if (sysctl(x->ctl, x->ctlmax, &val, &i, NULL, 0) == -1) {
-                       xwarnx("sysctl");
+                       xwarnx(_PATH_LD_HINTS ": unknown sysctl for %s", name);
                        break;
                }
 



Home | Main Index | Thread Index | Old Index