From matusita@jp.FreeBSD.ORG  Thu Dec 10 22:34:44 1998
Received: from martini.ics.es.osaka-u.ac.jp (martini.ics.es.osaka-u.ac.jp [133.1.12.88])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA22913;
          Thu, 10 Dec 1998 22:34:42 -0800 (PST)
          (envelope-from matusita@jp.FreeBSD.ORG)
Received: from localhost (localhost [127.0.0.1])
	by martini.ics.es.osaka-u.ac.jp (8.9.1/3.6W/ICS-2.2.2v7-44BSD) with ESMTP id PAA01345;
	Fri, 11 Dec 1998 15:34:28 +0900 (JST)
Message-Id: <19981211153426V.matusita@jp.FreeBSD.ORG>
Date: Fri, 11 Dec 1998 15:34:26 +0900
From: Makoto MATSUSHITA <matusita@jp.FreeBSD.ORG>
To: FreeBSD-gnats-submit@freebsd.org
Cc: jb@freebsd.org
Subject: Regacy aout support in /etc/rc is broken
X-Send-Pr-Version: 3.2

>Number:         9053
>Category:       bin
>Synopsis:       Regacy aout support in /etc/rc is broken
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 10 22:40:01 PST 1998
>Closed-Date:    Sat Dec 12 18:26:32 PST 1998
>Last-Modified:  Sat Dec 12 18:27:10 PST 1998
>Originator:     Makoto MATSUSHITA
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
Japan FreeBSD Users' Group / Osaka University
>Environment:

        FreeBSD 3.0-CURRENT

>Description:

        In /etc/rc, there is if-statement for legasy aout support
	for i386 architecture only. However, the conditional statement
	is wrong (it'll never execute).

>How-To-Repeat:

        Install 3.0-CURRENT and boot.

>Fix:

	Very easy, add '-n' option to sysctl.

*** rc.dist	Fri Dec 11 08:00:46 1998
--- rc	Fri Dec 11 15:30:57 1998
***************
*** 253,259 ****
  	fi
  
  	# Legacy aout support for i386 only
! 	if [ X"`sysctl hw.machine`" = X"i386" ]; then
  		# Default the a.out ldconfig path, in case the system's
  		# /etc/rc.conf hasn't been updated.
  		: ${ldconfig_paths_aout=${ldconfig_paths}}
--- 253,259 ----
  	fi
  
  	# Legacy aout support for i386 only
! 	if [ X"`sysctl -n hw.machine`" = X"i386" ]; then
  		# Default the a.out ldconfig path, in case the system's
  		# /etc/rc.conf hasn't been updated.
  		: ${ldconfig_paths_aout=${ldconfig_paths}}
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dillon 
State-Changed-When: Sat Dec 12 18:26:32 PST 1998 
State-Changed-Why:  
closing bug report, jb commited the fix! 

-Matt 
>Unformatted:
