aboutsummaryrefslogtreecommitdiff
path: root/utils/fakeroot.sh
Commit message (Collapse)AuthorAgeFilesLines
* fakeroot: set FAKED_MODESamuel Thibault2016-09-171-0/+3
| | | | * utils/fakeroot.sh (FAKED_MODE): Set to unknown-is-root.
* utils/settrans: improve --chroot functionalityJustus Winter2016-02-051-9/+6
| | | | | | | | | | | | | | | | | Add an option '--chroot-chdir' to settrans and make it chdir to this directory before executing the target program. Also, look up the executable in PATH. With these changes we no longer need to use the shell inside the chroot in the convenience scripts, and hence do not require it to be installed inside the chroot. * utils/fakeroot.sh: Simplify using the new option. * utils/remap.sh: Likewise. * utils/settrans.c (OPT_CHROOT_CHDIR): New constant. (options): New option 'chroot-chdir'. (main): Handle new option. Search for target executable in PATH. * utils/fakeauth.c (main): Likewise.
* Fix fakeroot and remap parsing corner casesSamuel Thibault2014-02-251-7/+3
| | | | | | | | | | Fix case when $PWD contains spaces. Pass directly arguments to command, to directly avoid escaping issues. Based on suggestion by Ivan Shmakov <oneingray@gmail.com> * utils/fakeroot.sh (TARGET): Do not define. (sh): Rather pass PWD and commandline as parameters. * utils/remap.sh: Likewise.
* utils: escape arguments in fakeroot.shJustus Winter2013-08-251-2/+8
| | | | | | | | | | | | | | | | | | fakeroot.sh uses /bin/sh to first change the working directory and then execute the given program in the fakeroot context. But the arguments given on the command line were not properly escaped: % '/bin/sh' '-c' 'echo $0' /bin/sh % fakeroot-tcp '/bin/sh' '-c' 'echo $0' /bin/sh % fakeroot-hurd '/bin/sh' '-c' 'echo $0' <empty line> % fakeroot-hurd-fixed '/bin/sh' '-c' 'echo $0' /bin/sh * utils/fakeroot.sh: Escape arguments handed to /bin/sh so that they are not evaluated prematurely.
* 2002-08-18 Roland McGrath <roland@frob.com>Roland McGrath2002-08-181-1/+1
| | | | | * fakeroot.sh: Dont use "exec" command, since the original script does not and some users use sh syntax here and not just commands.
* 2002-05-12 Roland McGrath <roland@frob.com>Roland McGrath2002-05-121-1/+7
| | | | | | * fakeroot.sh: Inside the chroot'd fakeauth environment, run a shell that chdir's to what was our original current directory (by name) before exec'ing the user's command.
* 2002-05-04 Roland McGrath <roland@frob.com>Roland McGrath2002-05-041-0/+57
* fakeroot.sh: New file. * Makefile (targets, special-targets, SRCS): Add it.