| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.674 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.4.674 (after 7.4.672) |
| Problem: Missing changes in one file. |
| Solution: Also change the win32 file. |
| Files: src/os_win32.c |
| |
| |
| |
| |
| |
| *** 3378,3387 **** |
| |
| /* |
| * Return 1 if "name" can be executed, 0 if not. |
| * Return -1 if unknown. |
| */ |
| int |
| ! mch_can_exe(char_u *name, char_u **path) |
| { |
| char_u buf[_MAX_PATH]; |
| int len = (int)STRLEN(name); |
| --- 3378,3388 ---- |
| |
| /* |
| * 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, int use_path) |
| { |
| char_u buf[_MAX_PATH]; |
| int len = (int)STRLEN(name); |
| |
| *** 3389,3394 **** |
| --- 3390,3400 ---- |
| |
| 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'. */ |
| |
| |
| |
| *** 743,744 **** |
| --- 743,746 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 674, |
| /**/ |
| |
| -- |
| Advice to worms: Sleep late. |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ an exciting new programming language -- http://www.Zimbu.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |