/*
- * $Id: directory.c,v 1.98 2009-06-19 13:38:32 franklahm Exp $
+ * $Id: directory.c,v 1.99 2009-07-20 18:31:04 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
afp_errno = AFPERR_PARAM;
return NULL;
}
+
+ if (check_name(vol, path->u_name)) {
+ /* the name is illegal */
+ afp_errno = AFPERR_PARAM;
+ return NULL;
+ }
+
if (of_stat( path ) != 0 ) {
if (!(vol->v_flags & AFPVOL_CASEINSEN))
return NULL;
return AFPERR_EXIST;
upath = s_path->u_name;
- if (0 != (err = check_name(vol, upath))) {
- return err;
- }
if (AFP_OK != (err = netatalk_mkdir( upath))) {
return err;
/*
- * $Id: file.c,v 1.108 2008-12-23 08:27:50 didg Exp $
+ * $Id: file.c,v 1.109 2009-07-20 18:31:04 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
char *path, *upath;
int creatf, did, openf, retvalue = AFP_OK;
u_int16_t vid;
- int ret;
struct path *s_path;
#ifdef DEBUG
}
upath = s_path->u_name;
- if (0 != (ret = check_name(vol, upath)))
- return ret;
/* if upath is deleted we already in trouble anyway */
if ((of = of_findname(s_path))) {