equal
deleted
inserted
replaced
1144 name = info->entries[middle].name; |
1144 name = info->entries[middle].name; |
1145 rc = strncmp(path, name, dlen); |
1145 rc = strncmp(path, name, dlen); |
1146 if (rc == 0) |
1146 if (rc == 0) |
1147 { |
1147 { |
1148 char ch = name[dlen]; |
1148 char ch = name[dlen]; |
1149 if (ch < '/') /* make sure this isn't just a substr match. */ |
1149 if ('/' < ch) /* make sure this isn't just a substr match. */ |
1150 rc = -1; |
1150 rc = -1; |
1151 else if (ch > '/') |
1151 else if ('/' > ch) |
1152 rc = 1; |
1152 rc = 1; |
1153 else |
1153 else |
1154 { |
1154 { |
1155 if (stop_on_first_find) /* Just checking dir's existance? */ |
1155 if (stop_on_first_find) /* Just checking dir's existance? */ |
1156 return(middle); |
1156 return(middle); |