Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com To: cygwin-developers AT sourceware DOT cygnus DOT com Subject: can't change /cygdrive properly Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=US-ASCII From: Kazuhiro Fujieda Date: 12 Sep 1999 03:34:02 +0900 Message-ID: Lines: 26 X-Mailer: Gnus v5.3/Emacs 19.34 pathconv can't properly handle Win32 path names including ":" just after the cygdrive path is changed by the mount command. Sun Sep 12 03:19:18 1999 Kazuhiro Fujieda (fujieda AT jaist DOT ac DOT 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; } ____ | AIST Kazuhiro Fujieda | HOKURIKU School of Information Science o_/ 1990 Japan Advanced Institute of Science and Technology