]>
Commit | Line | Data |
---|---|---|
437d9c61 ER |
1 | To: vim_dev@googlegroups.com |
2 | Subject: Patch 7.3.194 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.3.194 | |
11 | Problem: When "b" is a symlink to directory "a", resolve("b/") doesn't | |
12 | result in "a/". (ZyX) | |
13 | Solution: Remove the trailing slash. (Jean-Rene David) | |
14 | Files: src/eval.c | |
15 | ||
16 | ||
17 | *** ../vim-7.3.193/src/eval.c 2011-05-19 13:40:47.000000000 +0200 | |
18 | --- src/eval.c 2011-05-19 14:55:27.000000000 +0200 | |
19 | *************** | |
20 | *** 14980,14986 **** | |
21 | --- 14980,14989 ---- | |
22 | ||
23 | len = STRLEN(p); | |
24 | if (len > 0 && after_pathsep(p, p + len)) | |
25 | + { | |
26 | has_trailing_pathsep = TRUE; | |
27 | + p[len - 1] = NUL; /* the trailing slash breaks readlink() */ | |
28 | + } | |
29 | ||
30 | q = getnextcomp(p); | |
31 | if (*q != NUL) | |
32 | *** ../vim-7.3.193/src/version.c 2011-05-19 14:50:49.000000000 +0200 | |
33 | --- src/version.c 2011-05-19 14:54:40.000000000 +0200 | |
34 | *************** | |
35 | *** 711,712 **** | |
36 | --- 711,714 ---- | |
37 | { /* Add new patch number below this line */ | |
38 | + /**/ | |
39 | + 194, | |
40 | /**/ | |
41 | ||
42 | -- | |
43 | Momento mori, ergo carpe diem | |
44 | ||
45 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
46 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
47 | \\\ an exciting new programming language -- http://www.Zimbu.org /// | |
48 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |