aboutsummaryrefslogtreecommitdiffstats
path: root/lib/symlink.c
diff options
context:
space:
mode:
authorPaul Eggert2020-12-25 02:33:29 -0800
committerPaul Eggert2020-12-25 02:36:03 -0800
commit42d58264db165d265cba68d6dbebc53a50738355 (patch)
tree87543f2f0992a6b57a34dbd6ee04f48c3f6e7486 /lib/symlink.c
parent5880c7caab394eac55c44d4be42b2f45dbd9bc53 (diff)
downloademacs-42d58264db165d265cba68d6dbebc53a50738355.tar.gz
emacs-42d58264db165d265cba68d6dbebc53a50738355.zip
Update Gnulib.
All changes in this commit are autogenerated by running admin/merge-gnulib.
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)
36 if (len && name[len - 1] == '/') 36 if (len && name[len - 1] == '/')
37 { 37 {
38 struct stat st; 38 struct stat st;
39 if (lstat (name, &st) == 0) 39 if (lstat (name, &st) == 0 || errno == EOVERFLOW)
40 errno = EEXIST; 40 errno = EEXIST;
41 return -1; 41 return -1;
42 } 42 }