*** util.c.ORIG Mon Mar 6 07:13:30 2006 --- util.c Mon Apr 21 22:09:38 2008 *************** *** 270,275 **** --- 270,277 ---- /* Compare the sh pattern p with the string s and return true if they match, false if they don't or if there is a syntax error in the pattern. */ { + while (s[0] == '.' && s[1] == '/') + s += 2; /* strip redundant leading "./" sections */ return recmatch(p, s, cs) == 1; }