This is the mail archive of the cygwin-apps@cygwin.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]
Other format: [Raw text]

RE: [teilo@cdt.luth.se: Re: [bug?] binary mount point option in setup]




> -----Original Message-----
> From: Christopher Faylor [mailto:cgf@redhat.com] 
> Sent: Thursday, April 11, 2002 6:17 AM
> To: cygwin-apps@cygwin.com
> Subject: [teilo@cdt.luth.se: Re: [bug?] binary mount point 
> option in setup]
> 
> 
> It isn't a proper patch, but maybe this should be 
> incorporated into setup, if it isn't already.
> 
> It seems like a valid problem.

It is, but the solution was wrong.

Index: mount.cc
===================================================================
RCS file: /cvs/cygwin-apps/setup/mount.cc,v
retrieving revision 2.12
diff -u -p -r2.12 mount.cc
--- mount.cc	26 Apr 2002 08:10:32 -0000	2.12
+++ mount.cc	27 Apr 2002 01:37:08 -0000
@@ -238,6 +238,11 @@ set_cygdrive_flags (int istext, int issy
 	{
 	  DWORD cygdrive_flags = 0;
 	  status = get_cygdrive_flags (key, &cygdrive_flags);
+	  if (status == ERROR_FILE_NOT_FOUND)
+	    {
+	      status = ERROR_SUCCESS;
+	      cygdrive_flags = default_cygdrive (key);
+	    }
 	  if (status == ERROR_SUCCESS)
 	    {
 	      set_cygdrive_flags (key, istext, cygdrive_flags);

This is a more correct solution. I'm uploading a new setup snapshot to
http://www.cygwin.com/setup-snapshots, if anone would like to test this
out.

Rob


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