summaryrefslogtreecommitdiff
path: root/lib/symlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/symlink.c')
-rw-r--r--lib/symlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/symlink.c b/lib/symlink.c
index e7dbd184a99..b1196b9ee85 100644
--- a/lib/symlink.c
+++ b/lib/symlink.c
@@ -36,7 +36,7 @@ rpl_symlink (char const *contents, char const *name)
if (len && name[len - 1] == '/')
{
struct stat st;
- if (lstat (name, &st) == 0)
+ if (lstat (name, &st) == 0 || errno == EOVERFLOW)
errno = EEXIST;
return -1;
}