#ifdef CNID_DB
#include <atalk/cnid.h>
#endif /* CNID_DB */
+#include <atalk/util.h>
+
#include "desktop.h"
#include "directory.h"
#include "file.h"
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;
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(".");