diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2014-12-28 00:49:08 -0800 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2014-12-28 00:49:08 -0800 |
commit | 33b395806470eeac408070fec535bfd5efc20a2c (patch) | |
tree | 460b4348ea6401c36bd3488a0bf3fe12f9b4d7c4 /Completion/compinstall | |
parent | 200accac63deae99eb9656b26363c85648bd6748 (diff) | |
download | zsh-33b395806470eeac408070fec535bfd5efc20a2c.tar.gz zsh-33b395806470eeac408070fec535bfd5efc20a2c.tar.xz zsh-33b395806470eeac408070fec535bfd5efc20a2c.zip |
34068: create tempfiles without forking, and safe temp directory creation
Diffstat (limited to 'Completion/compinstall')
-rw-r--r-- | Completion/compinstall | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/compinstall b/Completion/compinstall index 7d34ee4d8..ae94993d6 100644 --- a/Completion/compinstall +++ b/Completion/compinstall @@ -1958,8 +1958,8 @@ if [[ -z $ifile || -d $ifile ]] || fi local tmpout=${TMPPREFIX:-/tmp/zsh}compinstall$$ -mv -f =(:) $tmpout && # safe tempfile creation -mv -f =(:) ${tmpout}x || return 1 +mv -f =(<<<'') $tmpout && # safe tempfile creation +mv -f =(<<<'') ${tmpout}x || return 1 # # Assemble the complete set of lines to |