/*
- * $Id: directory.c,v 1.131.2.3 2010-02-01 14:25:45 franklahm Exp $
+ * $Id: directory.c,v 1.131.2.4 2010-02-01 16:13:52 franklahm Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
}
ret->d_dir = dir;
+#if 0
ret->st_valid = 1;
ret->st_errno = EACCES;
+#endif
+
+ LOG(log_debug, logtype_afpd, "cname(AFPERR_ACCESS:'%s') {path-from-dir: curdir:'%s', path:'%s'}",
+ cfrombstring(dir->d_fullpath),
+ cfrombstring(curdir->d_fullpath),
+ ret->u_name);
+
return ret;
case AFPERR_NOOBJ:
memcpy(ret->u_name, cfrombstring(dir->d_u_name), blength(dir->d_u_name) + 1);
}
+#if 0
ret->st_valid = 1;
ret->st_errno = ENOENT;
+#endif
ret->d_dir = NULL;
dir_remove(vol, dir);
return ret;
/*
- * $Id: filedir.c,v 1.69.2.1 2010-02-01 10:56:08 franklahm Exp $
+ * $Id: filedir.c,v 1.69.2.2 2010-02-01 16:13:52 franklahm Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
of_statdir(vol, s_path);
}
if ( s_path->st_errno != 0 ) {
- if (s_path->st_errno != EACCES) {
+ if (afp_errno != AFPERR_ACCESS) {
LOG(log_debug, logtype_afpd, "getfildirparams: s_path->st_errno != 0");
return( AFPERR_NOOBJ );
}
}
if ( path->st_errno != 0 ) {
- return( AFPERR_NOOBJ );
+ if (afp_errno != AFPERR_ACCESS)
+ return( AFPERR_NOOBJ );
}
/*
* If ibuf is odd, make it even.