aboutsummaryrefslogtreecommitdiff
path: root/Src
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2015-04-03 09:55:11 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2015-04-03 09:55:11 -0700
commit1fa68938dcd3cdd5efdac2799eca809259e49736 (patch)
tree75300ddc1eafc236825a91d0bad4504a16111156 /Src
parentf5e7c4c839e9d5dbd325f563e7584b07f4835f52 (diff)
downloadzsh-1fa68938dcd3cdd5efdac2799eca809259e49736.tar.gz
zsh-1fa68938dcd3cdd5efdac2799eca809259e49736.tar.xz
zsh-1fa68938dcd3cdd5efdac2799eca809259e49736.zip
34837: avoid loss of original file path when applying colon-modifiers in glob qualifiers
Diffstat (limited to 'Src')
-rw-r--r--Src/glob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/glob.c b/Src/glob.c
index 33facde2b..ad29223c9 100644
--- a/Src/glob.c
+++ b/Src/glob.c
@@ -386,8 +386,8 @@ insert(char *s, int checked)
while (!inserts || (news = dupstring(*inserts++))) {
if (colonmod) {
/* Handle the remainder of the qualifier: e.g. (:r:s/foo/bar/). */
- s = colonmod;
- modify(&news, &s);
+ char *mod = colonmod;
+ modify(&news, &mod);
}
if (!statted && (gf_sorts & GS_NORMAL)) {
statfullpath(s, &buf, 1);