]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/catsearch.c
Import FCE
[netatalk.git] / etc / afpd / catsearch.c
index 58aab8e18360bf74e40f0bb7969b2c44cc9d0b51..a1e96dfc50ab74649f67c09569f6ea8c99818e37 100644 (file)
@@ -49,6 +49,8 @@
 #ifdef CNID_DB
 #include <atalk/cnid.h>
 #endif /* CNID_DB */
+#include <atalk/util.h>
+
 #include "desktop.h"
 #include "directory.h"
 #include "file.h"
@@ -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(".");