0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

updated for version 7.0176

This commit is contained in:
Bram Moolenaar
2005-12-23 22:19:46 +00:00
parent 0ce33f34a4
commit cc984263d7
4 changed files with 13 additions and 14 deletions

View File

@@ -3419,9 +3419,10 @@ resolve_symlink(fname, buf)
ret = readlink((char *)tmp, (char *)buf, MAXPATHL - 1);
if (ret <= 0)
{
if (errno == EINVAL) /* found non-symlink, stop here */
if (errno == EINVAL || errno == ENOENT)
{
/* When at the first level use the unmodifed name, skip the
/* Found non-symlink or not existing file, stop here.
* When at the first level use the unmodifed name, skip the
* call to vim_FullName(). */
if (depth == 1)
return FAIL;