- /* We need the parent CNID for files and must determine the type (file or dir) */
- if ((name = cnid_resolve(vol->v_cdb, &did, resolvebuf, 12 + MAXPATHLEN + 1)) == NULL) {
- result = AFPERR_NFILE;
- goto catsearch_end;
- }
-
- if ((dir = dirlookup(vol, did)) == NULL) {
- LOG(log_error, logtype_afpd,"catsearch_db: missing DID: %u", ntohl(did));
- result = AFPERR_NFILE;
- goto catsearch_end;
- }
- if (movecwd(vol, dir) < 0 ) {
- LOG(log_error, logtype_afpd,"catsearch_db: movecwd: %s", dir->d_fullpath);
- result = AFPERR_NFILE;
- goto catsearch_end;
- }
+ if ((name = cnid_resolve(vol->v_cdb, &did, resolvebuf, 12 + MAXPATHLEN + 1)) == NULL)
+ goto next;
+ LOG(log_debug, logtype_afpd, "catsearch_db: {pos: %u, name:%s, cnid: %u}",
+ cur_pos, name, ntohl(cnid));
+ if ((dir = dirlookup(vol, did)) == NULL)
+ goto next;
+ if (movecwd(vol, dir) < 0 )
+ goto next;