This is the mail archive of the cygwin-patches@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: chroot("/") can't work.


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]