Date: Sat, 15 Oct 2011 20:40:11 +0400 From: "Andrew Kolchoogin" <gadm@web.trunk-com.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/161689: net/nss-pam-ldapd doesn't honor PREFIX -- DANGEROUS for remote upgrades! Message-ID: <auto-000000500002@telvio.ru> Resent-Message-ID: <201110151730.p9FHUBvM094800@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 161689 >Category: ports >Synopsis: net/nss-pam-ldapd doesn't honor PREFIX -- DANGEROUS for remote upgrades! >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Oct 15 17:30:11 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Andrew Kolchoogin >Release: FreeBSD 8.2-RELEASE-p4 amd64 >Organization: The Avalon Project >Environment: System: FreeBSD web.trunk-com.ru 8.2-RELEASE-p4 FreeBSD 8.2-RELEASE-p4 #0: Fri Oct 14 23:30:58 MSD 2011 gadm@controller.trunk-com.ru:/usr/obj/usr/src/sys/GENERIC amd64 Really non os/target/libraries-dependant >Description: Error in rc.d/nslcd prevents machine from booting >How-To-Repeat: DO NOT DO THAT ON REAL HARDWARE: just upgrade net/nss-pam-ldapd to latest version available from ports with LOCALBASE set to something different from /usr/local and reboot -- machine boot will never end, and you will be unable even to ssh to it. >Fix: Apply the following patch: diff -r 301a98633249 net/nss-pam-ldapd/files/nslcd.in --- a/net/nss-pam-ldapd/files/nslcd.in Fri Oct 14 18:30:36 2011 +0400 +++ b/net/nss-pam-ldapd/files/nslcd.in Sat Oct 15 20:33:52 2011 +0400 @@ -21,7 +21,7 @@ start_postcmd="nslcd_poststart" nslcd_poststart () { - until $(/usr/local/sbin/nslcd -c); do + until $(%%PREFIX%%/sbin/${name} -c); do echo " Waiting for nslcd to start" sleep 1 done and rebuld the port in question. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?auto-000000500002>