This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: Setup.exe - snapshot runs but compiled from cvs get application error.
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 <cgf@redhat.com>
* 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)
{