Source-Changes-HG archive

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

[src/trunk]: src/sbin/ldconfig make ldconfig.c not always fail.



details:   https://anonhg.NetBSD.org/src/rev/7d522e1a5e33
branches:  trunk
changeset: 487031:7d522e1a5e33
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Jun 01 18:17:06 2000 +0000

description:
make ldconfig.c not always fail.

diffstat:

 sbin/ldconfig/ldconfig.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r d48859a399fb -r 7d522e1a5e33 sbin/ldconfig/ldconfig.c
--- a/sbin/ldconfig/ldconfig.c  Thu Jun 01 17:42:59 2000 +0000
+++ b/sbin/ldconfig/ldconfig.c  Thu Jun 01 18:17:06 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ldconfig.c,v 1.29 2000/05/27 17:06:34 matt Exp $       */
+/*     $NetBSD: ldconfig.c,v 1.30 2000/06/01 18:17:06 matt Exp $       */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -53,6 +53,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <link.h>
+#include <paths.h>
 
 #include "shlib.h"
 
@@ -219,6 +220,10 @@
        int             dewey[MAXDEWEY], ndewey;
 
        if ((dd = opendir(dir)) == NULL) {
+               /* /emul/aout directories are allowed to not exist.
+                */
+               if (!strncmp(dir, _PATH_EMUL_AOUT, sizeof(_PATH_EMUL_AOUT)-1))
+                       return 0;
                if (!silent || errno != ENOENT)
                        warn("%s", dir);
                return (-1);



Home | Main Index | Thread Index | Old Index