summaryrefslogtreecommitdiff
path: root/usr.sbin/chroot/chroot.c
AgeCommit message (Collapse)Author
2003-02-11More -G/-U deletion + style(9) while millert@ is here.Mike Pechkin
Make sence. millert@ ok
2003-02-08Make the -u and -g options more like the -U and -G options. My intentionTodd C. Miller
was to avoid needless incompatibilities with NetBSD's command line options but this ended up causing too much confusion on the part of the user. The -u option now also sets the group and group vector based on passwd(5) and group(5) unless an alternate group list is specified via the -g option. The -U and -G options have been removed. The resulting code is much simpler and the behavior of chroot(8) seems to better match users' expectations; OK deraadt@
2002-12-22o check for empty $SHELL and add missing __dead (Andrey Matveev)Todd C. Miller
o call setlogin() if the -U flag was specified and we either are the session leader or are able to become it.
2002-10-29Add -U option to set uid, gid, and group vector based on password database.Todd C. Miller
2002-10-25Add options to set the uid, gid, and group vector after the chroot;Todd C. Miller
adapted from NetBSD. OK markus@ and previously discussed with Theo.
2002-07-14ansiTheo de Raadt
2002-05-13o) fix order and usage of chroot&chdir;Mike Pechkin
o) move code up from chroot&chdir block (tftpd); millert@ ok
2000-08-17openbsd rcsdidsMichael Shalayeff
1996-08-29int mainTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt