ref: 1bbbdea98a3dcfea7ebe592329cfe79c06515935
parent: cd71cb306fbcc89c48ede4235a20c0dd7ee03cfb
author: Simon Howard <fraggle@soulsphere.org>
date: Sat Oct 27 14:29:25 EDT 2018
glob: Fix quirk with patterns ending in '*'. If a glob pattern ends in a '*' then we will expect to find an empty string at the end of our attempted matches.
--- a/src/i_glob.c
+++ b/src/i_glob.c
@@ -98,7 +98,7 @@
}
++name;
}
- return false;
+ return glob[1] == '\0';
}
else if (*glob != '?' && *name != *glob)
{