about summary refs log tree commit diff
path: root/stdio-common/tempnam.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/tempnam.c')
-rw-r--r--stdio-common/tempnam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdio-common/tempnam.c b/stdio-common/tempnam.c
index 5d4960f216..47ecf6d56d 100644
--- a/stdio-common/tempnam.c
+++ b/stdio-common/tempnam.c
@@ -31,7 +31,7 @@ tempnam (const char *dir, const char *pfx)
 {
   char buf[FILENAME_MAX];
 
-  if (__path_search (buf, FILENAME_MAX, dir, pfx))
+  if (__path_search (buf, FILENAME_MAX, dir, pfx, 1))
     return NULL;
 
   if (__gen_tempname (buf, 0, 0))