Subject: misc/4811: /etc/rc in NetBSD 1.3 is missing support for /etc/ld.so.conf
To: None <gnats-bugs@gnats.netbsd.org>
From: Duncan McEwan <duncan@MCS.VUW.AC.NZ>
List: netbsd-bugs
Date: 01/14/1998 20:58:11
>Number:         4811
>Category:       misc
>Synopsis:       No support for ld.so.conf in /etc/rc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 12 18:35:02 1998
>Last-Modified:
>Originator:     Duncan McEwan
>Organization:
	School of Maths and Computing Science, Victoria University.
>Release:        NetBSD-1.3
>Environment:

System: NetBSD duncan.mcs.vuw.ac.nz 1.3 NetBSD 1.3 (HINOTE) #13: Sat Jan 10 22:46:14 PST 1998 duncan@duncan.mcs.vuw.ac.nz:/usr/src/sys/arch/i386/compile/HINOTE i386


>Description:

A NetBSD 1.2G system that I have has /etc/rc with the following RCS id

	$NetBSD: rc,v 1.78 1997/06/12 15:18:58 mrg Exp $

The 1.3 system I have just installed has /etc/rc with

	$NetBSD: rc,v 1.95.2.2 1997/11/28 19:52:48 mellon Exp $

The older version has functionality that the newer one doesn't have -- in
particular the ldconfig command is invoked with the contents of /etc/ld.so.conf
as arguments.

Note that both 1.2G and 1.3 have manual pages describing ld.so.conf, so if
this functionality was intentionally removed, the man page should go as well.

>How-To-Repeat:

Inspection of NetBSD 1.3 /etc/rc

>Fix:

Either remove the man page for ld.so.conf, or reinstate the 1.2G functionality.

*** rc.orig	Wed Dec 31 10:30:26 1997
--- rc	Wed Jan 14 20:53:52 1998
***************
*** 277,283 ****
  
  if [ -f /sbin/ldconfig ]; then
  	echo 'creating runtime link editor directory cache.'
! 	ldconfig
  fi 
  
  # load kernel modules specified in /etc/lkm.conf
--- 277,287 ----
  
  if [ -f /sbin/ldconfig ]; then
  	echo 'creating runtime link editor directory cache.'
! 	if [ -f /etc/ld.so.conf ]; then
! 		ldconfig `cat /etc/ld.so.conf`
! 	else
! 		ldconfig
! 	fi
  fi 
  
  # load kernel modules specified in /etc/lkm.conf
>Audit-Trail:
>Unformatted: