From fa9cf506e76fb2ee267b69fbcd75a7106db9e8a1 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sun, 5 Feb 2006 17:20:36 +0000 Subject: [PATCH] - The '?' wildcard was completely broken in 3.2.4, reported by tabrisnet (#0002797). --- Changes | 1 + src/match.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 5281d4973..ffffbd240 100644 --- a/Changes +++ b/Changes @@ -1035,3 +1035,4 @@ - Fixed amd64 problem regarding /*LINE always saying 'The time you specified is out of range', reported and test shell provided by Tauop. - Updated example.bg.conf, the one shipped with 3.2.4 had several errors. +- The '?' wildcard was completely broken in 3.2.4, reported by tabrisnet (#0002797). diff --git a/src/match.c b/src/match.c index e7e2c2809..680d4bd3a 100644 --- a/src/match.c +++ b/src/match.c @@ -156,7 +156,7 @@ const u_char *na = name; return (*m != 0); } - if ((lc(*m) != lc(*n)) && !((*m == '_') && (*n == ' '))) + if ((lc(*m) != lc(*n)) && !((*m == '_') && (*n == ' ')) && (*m != '?')) { if (!ma) return 1;