diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2014-12-27 23:59:29 -0800 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2014-12-27 23:59:29 -0800 |
commit | 200accac63deae99eb9656b26363c85648bd6748 (patch) | |
tree | bd0461e34cb47f0f4f26e339efbc5cda479b0c2b /Functions/Zftp/zffcache | |
parent | 1cd802357096b60561b1a50c0c23ab357bbc0de3 (diff) | |
download | zsh-200accac63deae99eb9656b26363c85648bd6748.tar.gz zsh-200accac63deae99eb9656b26363c85648bd6748.tar.xz zsh-200accac63deae99eb9656b26363c85648bd6748.zip |
34067: safe tempfile creation, part 1
Diffstat (limited to 'Functions/Zftp/zffcache')
-rw-r--r-- | Functions/Zftp/zffcache | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Functions/Zftp/zffcache b/Functions/Zftp/zffcache index 48afdcba0..b609c2104 100644 --- a/Functions/Zftp/zffcache +++ b/Functions/Zftp/zffcache @@ -19,8 +19,5 @@ fi if [[ $1 = -d ]]; then unset $fcache_name elif (( ${(P)#fcache_name} == 0 )); then - local tmpf=${TMPPREFIX}zffcache$$ - zftp ls >$tmpf - eval "$fcache_name=(\${(f)\"\$(<\$tmpf)\"})" - rm -f $tmpf + eval "$fcache_name=(\${(f)\"\$(zftp ls)\"})" fi |