From: Paul Eggert Date: Mon, 31 Jul 2017 05:46:58 +0000 (-0700) Subject: Merge from gnulib X-Git-Tag: emacs-26.0.90~517^2~62 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ebce9c2440e69a1c521cb6ad58a909161cfefc7e;p=emacs.git Merge from gnulib This incorporates: 2017-07-30 Don't interpret EOVERFLOW to mean nonexistence * lib/tempname.c: Copy from gnulib. --- 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; }