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