about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarc Cornellà <hello@mcornella.com>2022-01-17 22:58:13 +0100
committerdana <dana@dana.is>2022-02-12 07:22:14 -0600
commitb34d33e3b3c5ae30e8315111f07634c1e7507531 (patch)
treea7762254ab4c5607b00b50368ab74f552c6f940f
parentbdc4d70a7e033b754e68a8659a037ea0fc5f38de (diff)
downloadzsh-b34d33e3b3c5ae30e8315111f07634c1e7507531.tar.gz
zsh-b34d33e3b3c5ae30e8315111f07634c1e7507531.tar.xz
zsh-b34d33e3b3c5ae30e8315111f07634c1e7507531.zip
security/82: VCS_Info: Fix typo in hook_com[base-name_orig] assignment
Tweaked per discussion in security/90, security/91
-rw-r--r--ChangeLog4
-rw-r--r--Functions/VCS_Info/VCS_INFO_formats2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index bb46493a5..fffb94aab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2022-01-27  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]}"