1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-20 23:16:04 +02:00

security/82: VCS_Info: Fix typo in hook_com[base-name_orig] assignment

Tweaked per discussion in security/90, security/91

(cherry picked from commit b34d33e3b3)
This commit is contained in:
Marc Cornellà 2022-01-17 22:58:13 +01:00 committed by dana
parent f7fa575a59
commit 2b66ed35b0
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2022-02-12 dana <dana@dana.is>
* Marc Cornellà: security/82 (tweaked):
Functions/VCS_Info/VCS_INFO_formats: Fix typo in
hook_com[base-name_orig] assignment
* CVE-2021-45444: NEWS, README: Document preceding two changes
* Marc Cornellà: security/89:

View File

@ -28,7 +28,7 @@ hook_com=(
vcs_orig "${vcs}"
)
hook_com[base-name]="${${hook_com[base]}:t}"
hook_com[base-name_orig]="${hook_com[base_name]}"
hook_com[base-name_orig]="${hook_com[base-name]}"
hook_com[subdir]="$(VCS_INFO_reposub ${hook_com[base]})"
hook_com[subdir_orig]="${hook_com[subdir]}"