From ebce9c2440e69a1c521cb6ad58a909161cfefc7e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 30 Jul 2017 22:46:58 -0700 Subject: [PATCH] Merge from gnulib This incorporates: 2017-07-30 Don't interpret EOVERFLOW to mean nonexistence * lib/tempname.c: Copy from gnulib. --- lib/tempname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2