~dexter/fakechroot/natty

« back to all changes in this revision

Viewing changes to test/bin/fakechroot

  • Committer: piotr.roszatycki at gmail
  • Date: 2010-09-12 18:21:38 UTC
  • mfrom: (0.1.7 upstream)
  • Revision ID: piotr.roszatycki@gmail.com-20100912182138-dpjazxgvcscsgd7e
* New upstream release:
  - All Debian patches were applied upstream.
  - Fixed getsockname(2) and getpeername(2) functions and bug when
    "host 127.0.0.1" is called. Closes: #596435.
  - Fixed canonicalize_file_name(3) function and bug when "man-db" command
    is called.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
srcdir=${srcdir:-.}
 
4
. $srcdir/common.inc
 
5
 
 
6
if [ "$1" = "-s" ] || [ "$1" = "--use-system-libs" ]; then
 
7
    LD_LIBRARY_PATH="$LD_LIBRARY_PATH${LD_LIBRARY_PATH:+:}/usr/lib:/lib"
 
8
    export LD_LIBRARY_PATH
 
9
    shift
 
10
fi
 
11
 
 
12
if [ "$1" = "--" ]; then
 
13
    shift
 
14
fi
 
15
 
 
16
prepare_env
 
17
 
 
18
if [ $# -gt 0 ]; then
 
19
    exec "$@"
 
20
else
 
21
    exec $SHELL
 
22
fi