2 * help.c: for rcpt500 (X.500 email query responder)
4 * 16 June 1992 by Mark C Smith
5 * Copyright (c) 1992 The Regents of The University of Michigan
15 #include "ldapconfig.h"
22 help_cmd( msgp, reply )
28 if (( fd = open( RCPT500_HELPFILE, O_RDONLY )) == -1 ) {
30 syslog( LOG_ERR, "open help file: %m" );
32 strcat( reply, "Unable to access the help file. Sorry!\n" );
36 len = read( fd, reply + strlen( reply ), MAXSIZE );
41 syslog( LOG_ERR, "read help file: %m" );
43 strcat( reply, "Unable to read the help file. Sorry!\n" );
47 *(reply + len ) = '\0';