This is the mail archive of the cygwin 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]

vim patch


The attached patch should solve the problem with symbolic links.
For ex. when editing /etc/hosts we get the warning
  E303: Unable to open swap file for "hosts", recovery impossible

See also
  http://cygwin.com/ml/cygwin/2006-06/msg00279.html
  http://www.mail-archive.com/vim-dev@vim.org/msg02519.html

The patch is against vim-7.0.223-1-src.tar.bz2

Regards.

Luca.


diff --recursive --unified vim-7.0.223-1/src/window.c vim-7.0.223-1-patched/src/window.c
--- vim-7.0.223-1/src/window.c	2007-03-27 17:46:56.000000000 +0200
+++ vim-7.0.223-1-patched/src/window.c	2007-04-15 03:30:44.056467200 +0200
@@ -5874,6 +5874,9 @@
 #if defined(MACOS_CLASSIC) || defined(OS2) || defined(MSDOS) || defined(MSWIN)
     slash_adjust(buf);
 #endif
+#if defined(__CYGWIN__)
+    cygwin_conv_to_posix_path( buf, buf );
+#endif
     return retval;
 }
 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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