/*
- * $Id: directory.c,v 1.21 2001-12-10 20:16:54 srittau Exp $
+ * $Id: directory.c,v 1.24 2002-01-03 17:49:38 sibaz 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>
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);