X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=blobdiff_plain;f=etc%2Fafpd%2Fcatsearch.c;h=9ffea6e21415c3b0299efbdd6e6fdb863a95a974;hp=09e3ff52196dd6770768e57876fe27ba78744359;hb=3a43b6ca05ec2b8f0494f8619a82d25204b7b457;hpb=4e9103b8f614e81a66f4c21511cc8b97f25111c9 diff --git a/etc/afpd/catsearch.c b/etc/afpd/catsearch.c index 09e3ff52..9ffea6e2 100644 --- a/etc/afpd/catsearch.c +++ b/etc/afpd/catsearch.c @@ -137,7 +137,6 @@ static void clearstack(void) static int addstack(char *uname, struct dir *dir, int pidx) { struct dsitem *ds; - size_t l, u; struct dsitem *tmpds = NULL; /* check if we have some space on stack... */ @@ -551,7 +550,7 @@ static int catsearch(const AFPObj *obj, dirpos = opendir("."); if (dirpos == NULL) - dirpos = opendir(bdata(currentdir->d_fullpath)); + dirpos = opendir(cfrombstr(currentdir->d_fullpath)); if (error || dirpos == NULL) { switch (errno) {