Attached is a small patch addressing todo item:
When "b" is a symlink to directory "a", resolve("b/") doesn't result in
"a/".
(ZyX, 2011 Feb 12)
The trailing slash confuses readlink(). We restore it in the result so I
just remove it during processing.
HTH,
--
JR
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
diff -r 34ba2a2fb961 -r 32b525d86e56 src/eval.c
--- a/src/eval.c Sat Apr 30 22:25:49 2011 -0400
+++ b/src/eval.c Sat Apr 30 23:27:03 2011 -0400
@@ -14986,7 +14986,10 @@
len = STRLEN(p);
if (len > 0 && after_pathsep(p, p + len))
+ {
has_trailing_pathsep = TRUE;
+ p[len - 1] = '\0'; /* the trailing slash breaks readlink() */
+ }
q = getnextcomp(p);
if (*q != NUL)