equal
deleted
inserted
replaced
198 char ch = name[dlen]; |
198 char ch = name[dlen]; |
199 if (ch < '/') /* make sure this isn't just a substr match. */ |
199 if (ch < '/') /* make sure this isn't just a substr match. */ |
200 rc = -1; |
200 rc = -1; |
201 else if (ch > '/') |
201 else if (ch > '/') |
202 rc = 1; |
202 rc = 1; |
203 else |
203 else |
204 { |
204 { |
205 if (stop_on_first_find) /* Just checking dir's existance? */ |
205 if (stop_on_first_find) /* Just checking dir's existance? */ |
206 return middle; |
206 return middle; |
207 |
207 |
208 if (name[dlen + 1] == '\0') /* Skip initial dir entry. */ |
208 if (name[dlen + 1] == '\0') /* Skip initial dir entry. */ |
291 } /* UNPK_enumerateFiles */ |
291 } /* UNPK_enumerateFiles */ |
292 |
292 |
293 |
293 |
294 /* |
294 /* |
295 * This will find the UNPKentry associated with a path in platform-independent |
295 * This will find the UNPKentry associated with a path in platform-independent |
296 * notation. Directories don't have UNPKentries associated with them, but |
296 * notation. Directories don't have UNPKentries associated with them, but |
297 * (*isDir) will be set to non-zero if a dir was hit. |
297 * (*isDir) will be set to non-zero if a dir was hit. |
298 */ |
298 */ |
299 static UNPKentry *findEntry(const UNPKinfo *info, const char *path, int *isDir) |
299 static UNPKentry *findEntry(const UNPKinfo *info, const char *path, int *isDir) |
300 { |
300 { |
301 UNPKentry *a = info->entries; |
301 UNPKentry *a = info->entries; |