This is the mail archive of the cygwin-developers@sourceware.cygnus.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: can't change /cygdrive properly


Thanks for the report.  I've checked in a patch which handled this in a
slightly different way here.

-chris

On Sun, Sep 12, 1999 at 03:34:02AM +0900, Kazuhiro Fujieda wrote:
>pathconv can't properly handle Win32 path names including
>"<drive>:" just after the cygdrive path is changed by the mount
>command.
>
>Sun Sep 12 03:19:18 1999  Kazuhiro Fujieda (fujieda@jaist.ac.jp)
>
>	* path.cc (mount): Set parameters about cygdrive properly.
>
>--- path.cc-	Sun Sep 05 12:56:36 1999
>+++ path.cc	Sun Sep 12 03:19:18 1999
>@@ -1897,7 +1897,10 @@ mount (const char *win32_path, const cha
> 
>       if (res == 0)
> 	{
>-	  strcpy (cygwin_shared->mount.cygdrive, posix_path);
>+	  char temp[MAX_PATH];
>+	  slashify (posix_path, temp, 1);
>+	  strcpy (cygwin_shared->mount.cygdrive, temp);
>+	  cygwin_shared->mount.cygdrive_len = strlen(temp);
> 	  cygwin_shared->mount.cygdrive_flags = flags;
> 	}
> 

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