3 * help.c: for rcpt500 (X.500 email query responder)
5 * 16 June 1992 by Mark C Smith
6 * Copyright (c) 1992 The Regents of The University of Michigan
14 #include <ac/syslog.h>
15 #include <ac/string.h>
16 #include <ac/unistd.h>
22 #include "ldap_defaults.h"
27 help_cmd(struct msginfo *msgp, char *reply)
31 if (( fd = open( RCPT500_HELPFILE, O_RDONLY )) == -1 ) {
33 syslog( LOG_ERR, "open help file: %m" );
35 strcat( reply, "Unable to access the help file. Sorry!\n" );
39 len = read( fd, reply + strlen( reply ), MAXSIZE );
44 syslog( LOG_ERR, "read help file: %m" );
46 strcat( reply, "Unable to read the help file. Sorry!\n" );
50 *(reply + len ) = '\0';