aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorGleb Fotengauer-Malinovskiy <glebfm@altlinux.org>2015-08-09 11:11:36 +0200
committerDmitry V. Levin <ldv@altlinux.org>2015-08-27 12:43:45 +0000
commit64d9cfd90e8f24815f5c99dc994ea0dacf773304 (patch)
treebc0882e1a754af577568772258d1f50ba10890f3 /misc
parentfff289f358ee26bb4cdd70f72f4b1b0e1a7d07a1 (diff)
downloadglibc-64d9cfd90e8f24815f5c99dc994ea0dacf773304.zip
glibc-64d9cfd90e8f24815f5c99dc994ea0dacf773304.tar.gz
glibc-64d9cfd90e8f24815f5c99dc994ea0dacf773304.tar.bz2
Mention mkdtemp as another secure alternative to mktemp
[BZ #2898] * misc/mktemp.c: Add mkdtemp to the link_warning message. Based on patch by Aurelien Jarno.
Diffstat (limited to 'misc')
-rw-r--r--misc/mktemp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/mktemp.c b/misc/mktemp.c
index fc82ede..763dee8 100644
--- a/misc/mktemp.c
+++ b/misc/mktemp.c
@@ -33,4 +33,5 @@ __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'")