delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
From: | "Chris January" <chris AT atomice DOT net> |
To: | "Cygwin AT Cygwin DOT Com" <cygwin AT cygwin DOT com> |
Subject: | Re: problem with chroot causing Cygwin to get confused about the root directory |
Date: | Mon, 2 Dec 2002 01:39:38 -0000 |
Message-ID: | <LPEHIHGCJOAIPFLADJAHMELKDBAA.chris@atomice.net> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
Importance: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1106 |
In-Reply-To: | <LPEHIHGCJOAIPFLADJAHIELFDBAA.chris@atomice.net> |
> I'm having a problem with chroot - see the following strace: > At the start of the strace chroot (".") has been called; it > succeeds at time > 63935. (The same problem occurs with chroot(<full path to > rootfs>) as well). > Then chdir ("/") is called at time 64000. The result of conv_to_posix_path > at time 2652 should be '/', but is instead /cygdrive/c/... > I'll look at the Cygwin source, but has anyone else any ideas as I suspect > it may take me some time to track this down. I found if I comment out the following two lines in path.ccc (mount_info::conv_to_posix_path), the problem goes away: if (cygheap->root.exists () && !cygheap->root.posix_ok (mi.posix_path)) continue; can anyone justify their inclusion? Chris -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |