diff options
| author | Paul Eggert | 2020-12-25 02:33:29 -0800 |
|---|---|---|
| committer | Paul Eggert | 2020-12-25 02:36:03 -0800 |
| commit | 42d58264db165d265cba68d6dbebc53a50738355 (patch) | |
| tree | 87543f2f0992a6b57a34dbd6ee04f48c3f6e7486 /lib/symlink.c | |
| parent | 5880c7caab394eac55c44d4be42b2f45dbd9bc53 (diff) | |
| download | emacs-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.c | 2 |
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 | } |