mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-11 13:01:28 +02:00
fix bug with f glob qualifier where an empty spec resulted in an infinite loop
This commit is contained in:
parent
280593163d
commit
2e70a25d46
2 changed files with 7 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
||||||
2003-08-01 Oliver Kiddle <opk@zsh.org>
|
2003-08-01 Oliver Kiddle <opk@zsh.org>
|
||||||
|
|
||||||
|
* 189xx: Src/glob.c: fix minor bug with f glob qualifier
|
||||||
|
|
||||||
* 18xxx: Completion/Unix/Command/_chmod: new chmod completion
|
* 18xxx: Completion/Unix/Command/_chmod: new chmod completion
|
||||||
|
|
||||||
2003-08-01 Peter Stephenson <pws@csr.com>
|
2003-08-01 Peter Stephenson <pws@csr.com>
|
||||||
|
|
|
@ -814,7 +814,7 @@ qgetmodespec(char **s)
|
||||||
}
|
}
|
||||||
if (how == '=' || how == '-')
|
if (how == '=' || how == '-')
|
||||||
no |= val & mask;
|
no |= val & mask;
|
||||||
} else {
|
} else if (!(end && c == end) && c != ',' && c) {
|
||||||
t = 07777;
|
t = 07777;
|
||||||
while ((c = *p) == '?' || c == Quest ||
|
while ((c = *p) == '?' || c == Quest ||
|
||||||
(c >= '0' && c <= '7')) {
|
(c >= '0' && c <= '7')) {
|
||||||
|
@ -838,7 +838,10 @@ qgetmodespec(char **s)
|
||||||
yes |= val;
|
yes |= val;
|
||||||
else
|
else
|
||||||
no |= val;
|
no |= val;
|
||||||
}
|
} else {
|
||||||
|
zerr("invalid mode specification", NULL, 0);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
} while (end && c != end);
|
} while (end && c != end);
|
||||||
|
|
||||||
*s = p;
|
*s = p;
|
||||||
|
|
Loading…
Reference in a new issue