0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.3.194

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)
This commit is contained in:
Bram Moolenaar
2011-05-19 14:59:10 +02:00
parent 9bd1a7ea28
commit 1385c3ee7f
2 changed files with 5 additions and 0 deletions

View File

@@ -14980,7 +14980,10 @@ f_resolve(argvars, rettv)
len = STRLEN(p); len = STRLEN(p);
if (len > 0 && after_pathsep(p, p + len)) if (len > 0 && after_pathsep(p, p + len))
{
has_trailing_pathsep = TRUE; has_trailing_pathsep = TRUE;
p[len - 1] = NUL; /* the trailing slash breaks readlink() */
}
q = getnextcomp(p); q = getnextcomp(p);
if (*q != NUL) if (*q != NUL)

View File

@@ -709,6 +709,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
194,
/**/ /**/
193, 193,
/**/ /**/