1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 04:40:59 +01:00

34067: safe tempfile creation, part 1

This commit is contained in:
Barton E. Schaefer 2014-12-27 23:59:29 -08:00
parent 1cd8023570
commit 200accac63
15 changed files with 75 additions and 65 deletions

View file

@ -254,8 +254,7 @@ if (( verbose )); then
fi
local mycmds="${TMPPREFIX:-/tmp/zsh}.calendar_cmds.$$"
touch $mycmds
chmod 600 $mycmds
mv -f =(:) $mycmds
# start of subshell for OS file locking
(