]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.674 v7.4.674
authorBram Moolenaar <Bram@vim.org>
Sat, 21 Mar 2015 21:18:41 +0000 (22:18 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 21 Mar 2015 21:18:41 +0000 (22:18 +0100)
Problem:    Missing changes in one file.
Solution:   Also change the win32 file.

src/os_win32.c
src/version.c

index ac25d7451ecb7459d35d113b88d2473fcce75590..f4d43442d85e77647c9990bb75e5cec54b022442 100644 (file)
@@ -3378,10 +3378,11 @@ mch_writable(char_u *name)
 
 /*
  * Return 1 if "name" can be executed, 0 if not.
+ * If "use_path" is FALSE only check if "name" is executable.
  * Return -1 if unknown.
  */
     int
-mch_can_exe(char_u *name, char_u **path)
+mch_can_exe(char_u *name, char_u **path, int use_path)
 {
     char_u     buf[_MAX_PATH];
     int                len = (int)STRLEN(name);
@@ -3389,6 +3390,11 @@ mch_can_exe(char_u *name, char_u **path)
 
     if (len >= _MAX_PATH)      /* safety check */
        return FALSE;
+    if (!use_path)
+    {
+       /* TODO: check if file is really executable. */
+       return mch_getperm(name) != -1 && !mch_isdir(name);
+    }
 
     /* If there already is an extension try using the name directly.  Also do
      * this with a Unix-shell like 'shell'. */
index 63577aca0ac4f31cfc0d77df74061c86b5ddf018..f86a9552f5711f27cccb97210bf60d44ce674364 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    674,
 /**/
     673,
 /**/