summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-12-23 22:19:46 +0000
committerBram Moolenaar <Bram@vim.org>2005-12-23 22:19:46 +0000
commitcc984263d755d05a12c8391abff42c087237554e (patch)
tree0a98cbad0d1319f24a39bdba658b1bbe856bf994 /src
parent0ce33f34a440ec5258f2189c4ff3109535f48dab (diff)
updated for version 7.0176v7.0176
Diffstat (limited to 'src')
-rw-r--r--src/memline.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/memline.c b/src/memline.c
index a8e4025be2..3eba98d598 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -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;