summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2016-07-28 09:46:40 +0100
committerPeter Stephenson <pws@zsh.org>2016-07-28 09:51:19 +0100
commit895e9beb294a9e86c8ead01ff177624848f495ff (patch)
tree55f4e2f711c27e3002b2f01ce00079633a8007c4 /Src
parent74722c7392ae95069df6966b1194d3e10320f3de (diff)
downloadzsh-895e9beb294a9e86c8ead01ff177624848f495ff.tar.gz
zsh-895e9beb294a9e86c8ead01ff177624848f495ff.tar.xz
zsh-895e9beb294a9e86c8ead01ff177624848f495ff.zip
users/21793: Remove raw integers as glob qualifiers.
There was an ancient undocumented feature that these were treated
as a file mode to "or" with that of the file under test.  The
only documented way of doing this has always been the "f" qualifier,
so removed the effect of raw integers to make errors more obvious.
Diffstat (limited to 'Src')
-rw-r--r--Src/glob.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/Src/glob.c b/Src/glob.c
index 850405fd4..a845c5fbb 100644
--- a/Src/glob.c
+++ b/Src/glob.c
@@ -1282,14 +1282,7 @@ zglob(LinkList list, LinkNode np, int nountok)
 		*ptr = '-';
 	while (*s && !newcolonmod) {
 	    func = (int (*) _((char *, Statptr, off_t, char *)))0;
-	    if (idigit(*s)) {
-		/* Store numeric argument for qualifier */
-		func = qualflags;
-		data = 0;
-		sdata = NULL;
-		while (idigit(*s))
-		    data = data * 010 + (*s++ - '0');
-	    } else if (*s == ',') {
+	    if (*s == ',') {
 		/* A comma separates alternative sets of qualifiers */
 		s++;
 		sense = 0;