astepano / rpms / vim

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