chroot("/") can't work.

Corinna Vinschen vinschen@redhat.com
Wed Nov 29 05:41:00 GMT 2000


Earnie Boyd wrote:
> 
> Is this patch so that you can do `chroot /'?  Why would you want to do that?

That's not the reason for `rootlen > 1'.

The problem is to strip a trailing '/' _except_ when rootlen == 1
which means, root is "/". Stripping the '/' would result in an
empty string then.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.
mailto:vinschen@redhat.com


More information about the Cygwin-patches mailing list