summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorDaniel Shahaf <danielsh@apache.org>2019-12-17 07:44:26 +0000
committerDaniel Shahaf <danielsh@apache.org>2019-12-18 06:01:47 +0000
commit3c4b3c87983a989a8404c03639cef1ce5bcd6ef8 (patch)
tree91a4c0e20e987ed770a91aa23f32c5dd657158c7 /ChangeLog
parent48ebe82b4839fb7a21f021d95e5b76201bad1cb8 (diff)
downloadzsh-3c4b3c87983a989a8404c03639cef1ce5bcd6ef8.tar.gz
zsh-3c4b3c87983a989a8404c03639cef1ce5bcd6ef8.tar.xz
zsh-3c4b3c87983a989a8404c03639cef1ce5bcd6ef8.zip
45064: Fix the mktemp() warning, in debug builds only.
On Linux, linking to mktemp() generates the following warning:
.
    utils.o: In function `gettempname':
    ./Src/utils.c:2229: warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'

The warning cannot be disabled.

Work around that by using mkstemp() instead, and massage its output so
it behaves like mktemp().  See the new comment for further details.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog3
1 files changed, 3 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2ea6116d8..5a8e6b956 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2019-12-18  Daniel Shahaf  <danielsh@apache.org>
 
+	* 45064: Src/utils.c: Fix the mktemp() warning, in debug
+	builds only.
+
 	* 45073: Doc/Zsh/contrib.yo: regex-replace docs: Simplify grammar
 	(avoid a double negative, state defaults first).