diff options
-rw-r--r-- | ChangeLog | 15 | ||||
-rw-r--r-- | Completion/Core/compdump | 2 |
2 files changed, 12 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog index eedfc1184..02ce7fcb8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-07-04 Bart Schaefer <schaefer@zsh.org> + + * 12160: Completion/Core/compdump: Return failure early if the + dot-file directory is not writable. + 2000-07-04 Oliver Kiddle <opk@zsh.org> * unposted: Src/params.c, Src/Zle/compcore.c, Src/Zle/zle_utils.c: @@ -7,15 +12,15 @@ * 12158: Src/Modules/parameter.c: cast pid_t to int for printing. -2000-07-03 Peter Stephenson <pws@cambridgesiliconradio.com> - - * 12149: acconfig.h, configure.in, Src/Modules/zftp.c: - h_errno wasn't found on HPUX 10.20. Maybe in some library. - 2000-07-04 Sven Wischnowsky <wischnow@zsh.org> * 12156: Completion/Core/_expand, Completion/Core/_path_files: add some $(print...)s because of possible math-parse errors + +2000-07-03 Peter Stephenson <pws@cambridgesiliconradio.com> + + * 12149: acconfig.h, configure.in, Src/Modules/zftp.c: + h_errno wasn't found on HPUX 10.20. Maybe in some library. 2000-07-03 Adam Spiers <adam@spiers.net> diff --git a/Completion/Core/compdump b/Completion/Core/compdump index de998bbd2..ba65d1501 100644 --- a/Completion/Core/compdump +++ b/Completion/Core/compdump @@ -21,6 +21,8 @@ typeset _d_file _d_f _d_bks _d_line _d_als _d_files _d_file=${_comp_dumpfile-${0:h}/compinit.dump}.$HOST.$$ [[ $_d_file = //* ]] && _d_file=${_d_file[2,-1]} +[[ -w ${_d_file:h} ]] || return 1 + _d_files=( ${^~fpath:/.}/^([^_]*|*~|*.zwc)(N) ) if [[ -n "$_comp_secure" ]]; then |