/*
- * $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.