X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=blobdiff_plain;f=etc%2Fafpd%2Fcatsearch.c;h=a1e96dfc50ab74649f67c09569f6ea8c99818e37;hp=662a876613a87db5419c50473e082fb1123040de;hb=40d96a4604aee6831230e2ab4abb17ba9247891e;hpb=2c09a52ace844af8c2475b7221b8d69d8a81b53e diff --git a/etc/afpd/catsearch.c b/etc/afpd/catsearch.c index 662a8766..a1e96dfc 100644 --- a/etc/afpd/catsearch.c +++ b/etc/afpd/catsearch.c @@ -49,6 +49,8 @@ #ifdef CNID_DB #include #endif /* CNID_DB */ +#include + #include "desktop.h" #include "directory.h" #include "file.h" @@ -497,7 +499,7 @@ static int catsearch(struct vol *vol, struct dir *dir, int result = AFP_OK; int ccr; struct path path; - char *vpath = vol->v_realpath; + char *vpath = vol->v_path; char *rrbuf = rbuf; time_t start_time; int num_rounds = NUM_ROUNDS; @@ -540,8 +542,7 @@ static int catsearch(struct vol *vol, struct dir *dir, while ((cidx = reducestack()) != -1) { cached = 1; - /* XXX use lchdir */ - error = chdir(dstack[cidx].path); + error = lchdir(dstack[cidx].path); if (!error && dirpos == NULL) { dirpos = opendir(".");