diff options
author | Marc Cornellà <hello@mcornella.com> | 2022-01-17 22:58:13 +0100 |
---|---|---|
committer | dana <dana@dana.is> | 2022-02-12 10:29:55 -0600 |
commit | 2b66ed35b014b3d93f37a67951c2bd00916c9370 (patch) | |
tree | 6378b7d100a164f6a08460b880bf62b073c8897d | |
parent | f7fa575a593c27fb2540aca64ef790340d60addf (diff) | |
download | zsh-2b66ed35b014b3d93f37a67951c2bd00916c9370.tar.gz zsh-2b66ed35b014b3d93f37a67951c2bd00916c9370.tar.xz zsh-2b66ed35b014b3d93f37a67951c2bd00916c9370.zip |
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 b34d33e3b3c5ae30e8315111f07634c1e7507531)
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Functions/VCS_Info/VCS_INFO_formats | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 255a3dbe8..5deb9f8d9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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: diff --git a/Functions/VCS_Info/VCS_INFO_formats b/Functions/VCS_Info/VCS_INFO_formats index e0e1dc738..daf169f26 100644 --- a/Functions/VCS_Info/VCS_INFO_formats +++ b/Functions/VCS_Info/VCS_INFO_formats @@ -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]}" |