/[gentoo-src]/sandbox/sandbox.bashrc
Gentoo

Contents of /sandbox/sandbox.bashrc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed May 4 14:46:50 2005 UTC (8 years, 11 months ago) by azarah
Branch: MAIN
CVS Tags: sandbox_1_2_8, sandbox_1_2_6, sandbox_1_2_7, sandbox_1_2_5, HEAD
Changes since 1.2: +10 -4 lines
Do not reset already set LD_PRELOAD when starting sandbox.  If LD_PRELOAD is
already set, init of the env vars fails for some reason, so do this later on,
and do not warn (bug #91431).

1 # Copyright (C) 2001 Geert Bevin, Uwyn, http://www.uwyn.com
2 # Distributed under the terms of the GNU General Public License, v2 or later
3 # Author : Geert Bevin <gbevin@uwyn.com>
4 # $Header: /var/cvsroot/gentoo-src/sandbox/sandbox.bashrc,v 1.2 2005/05/03 21:43:50 azarah Exp $
5 source /etc/profile
6
7 if [[ -n ${LD_PRELOAD} && ${LD_PRELOAD} != *$SANDBOX_LIB* ]] ; then
8 export LD_PRELOAD="${SANDBOX_LIB} ${LD_PRELOAD}"
9 elif [[ -z ${LD_PRELOAD} ]] ; then
10 export LD_PRELOAD="${SANDBOX_LIB}"
11 fi
12
13 alias make="make LD_PRELOAD=${LD_PRELOAD}"
14 alias su="su -c '/bin/bash -rcfile ${SANDBOX_BASHRC}'"

  ViewVC Help
Powered by ViewVC 1.1.20