aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2017-07-30 22:46:58 -0700
committerPaul Eggert2017-07-30 22:47:24 -0700
commitebce9c2440e69a1c521cb6ad58a909161cfefc7e (patch)
tree266136f8bfcde9dd94bac06a9e848dfcaa720700
parentdcfcaf40d577808d640016c886d4fae7280a7fd5 (diff)
downloademacs-ebce9c2440e69a1c521cb6ad58a909161cfefc7e.tar.gz
emacs-ebce9c2440e69a1c521cb6ad58a909161cfefc7e.zip
Merge from gnulib
This incorporates: 2017-07-30 Don't interpret EOVERFLOW to mean nonexistence * lib/tempname.c: Copy from gnulib.
-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)
279{ 279{
280 struct_stat64 st; 280 struct_stat64 st;
281 281
282 if (__lxstat64 (_STAT_VER, tmpl, &st) == 0) 282 if (__lxstat64 (_STAT_VER, tmpl, &st) == 0 || errno == EOVERFLOW)
283 __set_errno (EEXIST); 283 __set_errno (EEXIST);
284 return errno == ENOENT ? 0 : -1; 284 return errno == ENOENT ? 0 : -1;
285} 285}