/*
- * $Id: directory.c,v 1.43 2002-10-12 04:02:46 didg Exp $
+ * $Id: directory.c,v 1.44 2002-10-12 17:27:18 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
sfunc = (unsigned char) *ibuf++;
memcpy( &id, ibuf, sizeof( id ));
+ *rbuflen = 0;
id = ntohl(id);
if ( id != 0 ) {
case 1 :
case 3 :/* unicode */
if (( pw = getpwuid( id )) == NULL ) {
- *rbuflen = 0;
return( AFPERR_NOITEM );
}
name = pw->pw_name;
case 2 :
case 4 : /* unicode */
if (( gr = (struct group *)getgrgid( id )) == NULL ) {
- *rbuflen = 0;
return( AFPERR_NOITEM );
}
name = gr->gr_name;
case 3:
case 4:
if (afp_version < 30) {
- *rbuflen = 0;
return( AFPERR_PARAM );
}
utf8 = 1;