]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.194 v7.3.194
authorBram Moolenaar <Bram@vim.org>
Thu, 19 May 2011 12:59:10 +0000 (14:59 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 19 May 2011 12:59:10 +0000 (14:59 +0200)
Problem:    When "b" is a symlink to directory "a", resolve("b/") doesn't
            result in "a/".  (ZyX)
Solution:   Remove the trailing slash. (Jean-Rene David)

src/eval.c
src/version.c

index db7b1063802f10775d25fa76ca87d35559a07c27..64ed72ae0b16a48bb0d82d4b03a6393fb846df17 100644 (file)
@@ -14980,7 +14980,10 @@ f_resolve(argvars, rettv)
 
        len = STRLEN(p);
        if (len > 0 && after_pathsep(p, p + len))
+       {
            has_trailing_pathsep = TRUE;
+           p[len - 1] = NUL; /* the trailing slash breaks readlink() */
+       }
 
        q = getnextcomp(p);
        if (*q != NUL)
index 1bd1858448119e925bfd58c453e7881eb52a88a6..b505c29466b2ebcfacdfa4ab1b6eed52223565ec 100644 (file)
@@ -709,6 +709,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    194,
 /**/
     193,
 /**/