summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2017-07-30 22:46:58 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2017-07-30 22:47:24 -0700
commitebce9c2440e69a1c521cb6ad58a909161cfefc7e (patch)
tree266136f8bfcde9dd94bac06a9e848dfcaa720700 /lib
parentdcfcaf40d577808d640016c886d4fae7280a7fd5 (diff)
downloademacs-ebce9c2440e69a1c521cb6ad58a909161cfefc7e.tar.gz
Merge from gnulib
This incorporates: 2017-07-30 Don't interpret EOVERFLOW to mean nonexistence * lib/tempname.c: Copy from gnulib.
Diffstat (limited to 'lib')
-rw-r--r--lib/tempname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tempname.c b/lib/tempname.c
index 2cd90328bda..9c4a3c2a54d 100644
--- a/lib/tempname.c
+++ b/lib/tempname.c
@@ -279,7 +279,7 @@ try_nocreate (char *tmpl, void *flags _GL_UNUSED)
{
struct_stat64 st;
- if (__lxstat64 (_STAT_VER, tmpl, &st) == 0)
+ if (__lxstat64 (_STAT_VER, tmpl, &st) == 0 || errno == EOVERFLOW)
__set_errno (EEXIST);
return errno == ENOENT ? 0 : -1;
}