/*
- * $Id: directory.c,v 1.35 2002-08-15 06:20:10 didg Exp $
+ * $Id: directory.c,v 1.36 2002-08-16 00:42:56 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
return( AFPERR_NOOBJ );
}
+ if ( *path != '\0' ) {
+ return( AFPERR_BADTYPE ); /* not a directory */
+ }
+
/*
* If ibuf is odd, make it even.
*/
/*
- * $Id: file.c,v 1.46 2002-06-17 18:23:03 didg Exp $
+ * $Id: file.c,v 1.47 2002-08-16 00:42:56 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
return( AFPERR_NOOBJ );
}
+ if ( *path == '\0' ) {
+ return( AFPERR_BADTYPE ); /* it's a directory */
+ }
+
if ((u_long)ibuf & 1 ) {
ibuf++;
}