mirror of
https://github.com/zsh-users/zsh
synced 2024-10-04 15:09:11 +00: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
|
@ -1,5 +1,7 @@
|
|||
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
|
||||
|
||||
2003-08-01 Peter Stephenson <pws@csr.com>
|
||||
|
|
|
@ -814,7 +814,7 @@ qgetmodespec(char **s)
|
|||
}
|
||||
if (how == '=' || how == '-')
|
||||
no |= val & mask;
|
||||
} else {
|
||||
} else if (!(end && c == end) && c != ',' && c) {
|
||||
t = 07777;
|
||||
while ((c = *p) == '?' || c == Quest ||
|
||||
(c >= '0' && c <= '7')) {
|
||||
|
@ -838,7 +838,10 @@ qgetmodespec(char **s)
|
|||
yes |= val;
|
||||
else
|
||||
no |= val;
|
||||
}
|
||||
} else {
|
||||
zerr("invalid mode specification", NULL, 0);
|
||||
return 0;
|
||||
}
|
||||
} while (end && c != end);
|
||||
|
||||
*s = p;
|
||||
|
|
Loading…
Reference in a new issue