This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] [BZ 2898] Mention mkdtemp as another secure alternative to mktemp
- From: Gleb Fotengauer-Malinovskiy <glebfm at altlinux dot org>
- To: libc-alpha at sourceware dot org
- Date: Sun, 9 Aug 2015 11:34:31 +0200
- Subject: [PATCH] [BZ 2898] Mention mkdtemp as another secure alternative to mktemp
- Authentication-results: sourceware.org; auth=none
[BZ #2898]
* misc/mktemp.c: Add mkdtemp to link_warning message.
Patch by Aurelien Jarno.
---
misc/mktemp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/misc/mktemp.c b/misc/mktemp.c
index fc82ede..a144938 100644
--- a/misc/mktemp.c
+++ b/misc/mktemp.c
@@ -33,4 +33,4 @@ __mktemp (template)
}
weak_alias (__mktemp, mktemp)
-link_warning (mktemp, "the use of `mktemp' is dangerous, better use `mkstemp'")
+link_warning (mktemp, "the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'")
--
glebfm