00e0e8b
To: vim-dev@vim.org
00e0e8b
Subject: Patch 7.1.328
00e0e8b
Fcc: outbox
00e0e8b
From: Bram Moolenaar <Bram@moolenaar.net>
00e0e8b
Mime-Version: 1.0
00e0e8b
Content-Type: text/plain; charset=ISO-8859-1
00e0e8b
Content-Transfer-Encoding: 8bit
00e0e8b
------------
00e0e8b
00e0e8b
Patch 7.1.328
00e0e8b
Problem:    Crash when using Cygwin and non-posix path name in tags file.
00e0e8b
Solution:   Use separate buffer for posix path. (Ben Schmidt)
00e0e8b
Files:	    src/os_unix.c
00e0e8b
00e0e8b
00e0e8b
*** ../vim-7.1.327/src/os_unix.c	Fri Jun 20 11:58:27 2008
00e0e8b
--- src/os_unix.c	Sat Jun 21 13:06:45 2008
00e0e8b
***************
00e0e8b
*** 2278,2283 ****
00e0e8b
--- 2278,2287 ----
00e0e8b
      char_u	olddir[MAXPATHL];
00e0e8b
      char_u	*p;
00e0e8b
      int		retval = OK;
00e0e8b
+ #ifdef __CYGWIN__
00e0e8b
+     char_u	posix_fname[MAX_PATH];
00e0e8b
+ #endif
00e0e8b
+ 
00e0e8b
  
00e0e8b
  #ifdef VMS
00e0e8b
      fname = vms_fixfilename(fname);
00e0e8b
***************
00e0e8b
*** 2287,2293 ****
00e0e8b
      /*
00e0e8b
       * This helps for when "/etc/hosts" is a symlink to "c:/something/hosts".
00e0e8b
       */
00e0e8b
!     cygwin_conv_to_posix_path(fname, fname);
00e0e8b
  #endif
00e0e8b
  
00e0e8b
      /* expand it if forced or not an absolute path */
00e0e8b
--- 2291,2298 ----
00e0e8b
      /*
00e0e8b
       * This helps for when "/etc/hosts" is a symlink to "c:/something/hosts".
00e0e8b
       */
00e0e8b
!     cygwin_conv_to_posix_path(fname, posix_fname);
00e0e8b
!     fname = posix_fname;
00e0e8b
  #endif
00e0e8b
  
00e0e8b
      /* expand it if forced or not an absolute path */
00e0e8b
*** ../vim-7.1.327/src/version.c	Fri Jun 20 21:29:01 2008
00e0e8b
--- src/version.c	Sat Jun 21 13:10:39 2008
00e0e8b
***************
00e0e8b
*** 668,669 ****
00e0e8b
--- 673,676 ----
00e0e8b
  {   /* Add new patch number below this line */
00e0e8b
+ /**/
00e0e8b
+     328,
00e0e8b
  /**/
00e0e8b
00e0e8b
-- 
00e0e8b
Q: Should I clean my house or work on Vim?
00e0e8b
A: Whatever contains more bugs.
00e0e8b
00e0e8b
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
00e0e8b
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
00e0e8b
\\\        download, build and distribute -- http://www.A-A-P.org        ///
00e0e8b
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///