Karsten Hopp 06955e
To: vim-dev@vim.org
Karsten Hopp 06955e
Subject: patch 7.1.064
Karsten Hopp 06955e
Fcc: outbox
Karsten Hopp 06955e
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 06955e
Mime-Version: 1.0
Karsten Hopp 06955e
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 06955e
Content-Transfer-Encoding: 8bit
Karsten Hopp 06955e
------------
Karsten Hopp 06955e
Karsten Hopp 06955e
Patch 7.1.064
Karsten Hopp 06955e
Problem:    On Interix some files appear not to exist.
Karsten Hopp 06955e
Solution:   Remove the top bit from st_mode. (Ligesh)
Karsten Hopp 06955e
Files:	    src/os_unix.c
Karsten Hopp 06955e
Karsten Hopp 06955e
Karsten Hopp 06955e
*** ../vim-7.1.063/src/os_unix.c	Thu May 10 19:42:47 2007
Karsten Hopp 06955e
--- src/os_unix.c	Fri Aug 10 19:32:20 2007
Karsten Hopp 06955e
***************
Karsten Hopp 06955e
*** 2499,2505 ****
Karsten Hopp 06955e
--- 2499,2511 ----
Karsten Hopp 06955e
      if (stat((char *)name, &statb))
Karsten Hopp 06955e
  #endif
Karsten Hopp 06955e
  	return -1;
Karsten Hopp 06955e
+ #ifdef __INTERIX
Karsten Hopp 06955e
+     /* The top bit makes the value negative, which means the file doesn't
Karsten Hopp 06955e
+      * exist.  Remove the bit, we don't use it. */
Karsten Hopp 06955e
+     return statb.st_mode & ~S_ADDACE;
Karsten Hopp 06955e
+ #else
Karsten Hopp 06955e
      return statb.st_mode;
Karsten Hopp 06955e
+ #endif
Karsten Hopp 06955e
  }
Karsten Hopp 06955e
  
Karsten Hopp 06955e
  /*
Karsten Hopp 06955e
*** ../vim-7.1.063/src/version.c	Sat Aug 11 15:59:44 2007
Karsten Hopp 06955e
--- src/version.c	Sat Aug 11 22:21:35 2007
Karsten Hopp 06955e
***************
Karsten Hopp 06955e
*** 668,669 ****
Karsten Hopp 06955e
--- 668,671 ----
Karsten Hopp 06955e
  {   /* Add new patch number below this line */
Karsten Hopp 06955e
+ /**/
Karsten Hopp 06955e
+     64,
Karsten Hopp 06955e
  /**/
Karsten Hopp 06955e
Karsten Hopp 06955e
-- 
Karsten Hopp 06955e
I have a watch cat! Just break in and she'll watch.
Karsten Hopp 06955e
Karsten Hopp 06955e
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 06955e
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 06955e
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 06955e
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///