This is the mail archive of the
cygwin-patches@sources.redhat.com
mailing list for the Cygwin project.
Re: chroot("/") can't work.
- To: cygpatch <cygwin-patches at cygwin dot com>
- Subject: Re: chroot("/") can't work.
- From: Corinna Vinschen <vinschen at redhat dot com>
- Date: Wed, 29 Nov 2000 14:40:52 +0100
- References: <20001129131743.15031.qmail@web117.yahoomail.com>
- Reply-To: cygwin-patches at cygwin dot com
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