Messages in this thread |  | | Date | Fri, 14 Jun 1996 08:44:11 -0500 (CDT) | From | Brian Pape <> | Subject | Re: chroot bug, & Re: Ideas for v2.1 |
| |
> : The man page for chroot on a SysV or BSD system states: > : chroot causes the given command to be executed relative to > : the new root. The meaning of any initial slashes (/) in the > : pathnames is changed for the command and any of its child > : processes to newroot. Furthermore, upon execution, the > : initial working directory is newroot. > : > : chroot(8) is broken if it doesn't leave you in newroot. > > Hmmm, my FreeBSD man page says different: > > NAME > chroot - change root directory > ... > DESCRIPTION > Dirname is the address of the pathname of a directory, terminated by an > ASCII NUL. Chroot() causes dirname to become the root directory, that > is, the starting point for path searches of pathnames beginning with `/'.
This is a chroot(3) man page, the behavior of the system call might well be different than the intended behavior of /usr/bin/chroot.
Brian Pape bpape@ezl.com
|  |