| version 1.19, 2007/12/05 20:25:56 |
version 1.20, 2008/01/18 16:20:00 |
| Line 625 glob2(Char *pathbuf, Char *pathend, Char |
|
| Line 625 glob2(Char *pathbuf, Char *pathend, Char |
|
| *q++ = *p++; |
*q++ = *p++; |
| } |
} |
| |
|
| if (!anymeta) { /* No expansion, do next segment. */ |
/* |
| |
* No expansion, or path ends in dot-slash or dot-dot-slash, |
| |
* do next segment. |
| |
*/ |
| |
if ((!anymeta) || |
| |
(((pathend-pathbuf) > 1) && |
| |
(((*(pathend-1) == SEP) && (*(pathend-2) == DOT)) && |
| |
((((pathend-pathbuf) < 3) || (*(pathend-3) == SEP)) || |
| |
(((pathend-pathbuf) < 4) || |
| |
((*(pathend-3) == DOT) && (*(pathend-4) == SEP))))))) { |
| pathend = q; |
pathend = q; |
| pattern = p; |
pattern = p; |
| while (*pattern == SEP) { |
while (*pattern == SEP) { |