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:
parent
1cd8023570
commit
200accac63
15 changed files with 75 additions and 65 deletions
|
|
@ -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
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue