Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com Date: Mon, 5 Nov 2001 20:14:32 -0500 From: Christopher Faylor To: cygwin-apps AT cygwin DOT com Subject: Re: Setup.exe - snapshot runs but compiled from cvs get application error. Message-ID: <20011105201432.A1047@redhat.com> Reply-To: cygwin-apps AT cygwin DOT com Mail-Followup-To: cygwin-apps AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.21i On Tue, Nov 06, 2001 at 12:15:50PM +1100, Robert Collins wrote: >> -----Original Message----- >> FWIW, this *is* the problem that was fixed by my patch. > >Thanks. And, here it is for public consumption. I didn't apply it because I didn't think that it was exactly the right solution. I thought that maybe cygpath should have a "get_root_dir_now" call in it to ensure that it would never try to access setup.exe's mount table before it was initialized. cgf 2001-11-02 Christopher Faylor * localdir.cc (do_local_dir): Ensure that mount table is initialized prior to cygpath call. Index: localdir.cc =================================================================== RCS file: /cvs/uberbaum/winsup/cinstall/localdir.cc,v retrieving revision 2.2 diff -u -p -r2.2 localdir.cc --- localdir.cc 2001/11/01 13:22:46 2.2 +++ localdir.cc 2001/11/03 02:31:39 @@ -202,6 +202,7 @@ do_local_dir (HINSTANCE h) static int inited = 0; if (!inited) { + get_root_dir_now (); FILE *f = fopen (cygpath ("/etc/setup/last-cache", 0), "rt"); if (f) {