From owner-freebsd-bugs@FreeBSD.ORG Thu Aug 16 20:50:01 2007 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D55D016A41A for ; Thu, 16 Aug 2007 20:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8FBBF13C467 for ; Thu, 16 Aug 2007 20:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l7GKo1Lg067580 for ; Thu, 16 Aug 2007 20:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l7GKo1Ki067579; Thu, 16 Aug 2007 20:50:01 GMT (envelope-from gnats) Resent-Date: Thu, 16 Aug 2007 20:50:01 GMT Resent-Message-Id: <200708162050.l7GKo1Ki067579@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tim Newsham Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE9D516A421 for ; Thu, 16 Aug 2007 20:44:40 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id AB3B213C469 for ; Thu, 16 Aug 2007 20:44:40 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l7GKiegV090134 for ; Thu, 16 Aug 2007 20:44:40 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l7GKieW2090133; Thu, 16 Aug 2007 20:44:40 GMT (envelope-from nobody) Message-Id: <200708162044.l7GKieW2090133@www.freebsd.org> Date: Thu, 16 Aug 2007 20:44:40 GMT From: Tim Newsham To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/115588: rc.d/ldconfig doesnt handle ldconfig_local_dirs properly X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Aug 2007 20:50:01 -0000 >Number: 115588 >Category: misc >Synopsis: rc.d/ldconfig doesnt handle ldconfig_local_dirs properly >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 16 20:50:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Tim Newsham >Release: FreeBSD6.2-STABLE (early august) >Organization: >Environment: FreeBSD hpsux.x0d99.com 6.2-STABLE FreeBSD 6.2-STABLE #1: Fri Aug 3 18:39:42 HST 2007 root@hpsux.x0d99.com:/usr/src/sys/amd64/compile/THENEWSH amd64 >Description: The /etc/rc.d/ldconfig script does not properly handle ldconfig_local_dirs or ld_config_local32_dirs paths. If you try to run the script with either of these set in /etc/rc.conf (ie. ldconfig_local32_dirs=/usr/local/lib32) the screen will be filled with garbage. I believe this is due to: if [ -n "${_files}" ]; then ldconfig_paths="${ldconfig_paths} `cat ${_files} | sort -u`" fi which sets the ldconfig_paths variable to the contents of all of the library files. This variable is later echoed to the screen. Perhaps the "cat" was meant to be an "echo"? Tim >How-To-Repeat: edit /etc/rc.conf. Add a line ldconfig_local_dirs=/usr/local/lib save the file and run sh /etc/rc.d/ldconfig restart repeat with ldconfig_local32_dirs on an em64_t/amd64 machine. >Fix: Change cat to echo? I'm not sure I understand what the script was trying to do. >Release-Note: >Audit-Trail: >Unformatted: