From b3f8a44b104a8a1a493fac65e9b4415459e0b8bd Mon Sep 17 00:00:00 2001 From: Frank Lahm Date: Fri, 24 Feb 2012 14:16:51 +0100 Subject: [PATCH] Dont use search db when doing partial name search --- etc/afpd/catsearch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/afpd/catsearch.c b/etc/afpd/catsearch.c index 71d1a44608a..bab0cbc64ca 100644 --- a/etc/afpd/catsearch.c +++ b/etc/afpd/catsearch.c @@ -1047,6 +1047,7 @@ static int catsearch_afp(AFPObj *obj _U_, char *ibuf, size_t ibuflen, /* Call search */ *rbuflen = 24; if ((c1.rbitmap & (1 << FILPBIT_PDINFO)) + && !(c1.rbitmap & (1<v_cnidscheme, "dbd") == 0) && (vol->v_flags & AFPVOL_SEARCHDB)) /* we've got a name and it's a dbd volume, so search CNID database */