/[hurd]/hurd/utils/fakeroot.sh
ViewVC logotype

Diff of /hurd/utils/fakeroot.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by roland, Sat May 4 23:31:20 2002 UTC revision 1.2 by roland, Sun May 12 21:14:15 2002 UTC
# Line 54  if [ $# -eq 0 ]; then Line 54  if [ $# -eq 0 ]; then
54    set -- ${SHELL:-/bin/sh}    set -- ${SHELL:-/bin/sh}
55  fi  fi
56    
57  exec /bin/settrans --chroot /bin/fakeauth "$@" -- / /hurd/fakeroot  # We exec settrans, which execs the "fakeauth" command in the chroot context.
58    # The `pwd` is evaluated here and now, and that result interpreted inside
59    # the shell running under fakeauth to chdir there inside the chroot world.
60    # That shell then execs our arguments as a command line.
61    exec /bin/settrans --chroot \
62         /bin/fakeauth /bin/sh -c "cd `pwd`; exec $*" \
63         -- / /hurd/fakeroot

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26