aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tempname.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tempname.c')
-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}