/*
- * $Id: directory.c,v 1.19.2.1 2001-12-03 05:01:04 jmarcus Exp $
+ * $Id: directory.c,v 1.19.2.5 2002-03-12 15:05:50 srittau Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
#include "config.h"
#endif /* HAVE_CONFIG_H */
-#include <sys/syslog.h>
+#include <syslog.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include "volume.h"
#include "fork.h"
#include "file.h"
+#include "filedir.h"
#include "globals.h"
#include "unix.h"
continue; /* somebody went and deleted it behind our backs. */
case EROFS:
err = AFPERR_VLOCK;
+ break;
case EPERM:
case EACCES :
err = AFPERR_ACCESS;
+ break;
default :
err = AFPERR_PARAM;
}
}
/* check for illegal bits */
- if ((vol->v_flags & AFPVOL_MSWINDOWS) &&
- strpbrk(path, MSWINDOWS_BADCHARS))
+ if (!wincheck(vol, path))
return AFPERR_PARAM;
upath = mtoupath(vol, path);