uci/file: replace mktemp() with mkstemp()
authorMaxim Gorbachyov <maxim.gorbachyov@gmail.com>
Fri, 19 Jul 2019 06:46:42 +0000 (23:46 -0700)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 1 Sep 2019 10:45:54 +0000 (12:45 +0200)
commit415f9e48436d29f612348f58f546b3ad8d74ac38
treeab248822b4795b9b1c4a69af37268a094c3fbca0
parentf199b961c2970b63cc83947ad49b327b3f48f05f
uci/file: replace mktemp() with mkstemp()

mktemp is unsafe to use as well as deprecated by POSIX.1-2008. uClibc-ng
optionally does not include it when SuSv3 legacy functions are disabled.

Signed-off-by: Maxim Gorbachyov <maxim.gorbachyov@gmail.com>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
file.c