gitk: Use mktemp -d to avoid predictable temporary directories
authorDavid Aguilar <davvid@gmail.com>
Fri, 13 Jun 2014 21:43:48 +0000 (14:43 -0700)
committerPaul Mackerras <paulus@samba.org>
Sun, 15 Jun 2014 01:35:50 +0000 (11:35 +1000)
commit105b5d3fbb1c00bb0aeaf9d3e0fbe26a7b1993fc
tree35b486acec809cfc69bc1fed99ff5afc2d46fd72
parentc7664f1a8c6d40acf8221ba620a3193dec411f8c
gitk: Use mktemp -d to avoid predictable temporary directories

gitk uses a predictable ".gitk-tmp.$PID" pattern when generating
a temporary directory.

Use "mktemp -d .gitk-tmp.XXXXXX" to harden gitk against someone
seeding /tmp with files matching the pid pattern.

Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk