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
13 #include <ac/syslog.h>
14 #include <ac/string.h>
15 #include <ac/unistd.h>
21 #include "ldap_defaults.h"
26 help_cmd(struct msginfo *msgp, char *reply)
30 if (( fd = open( RCPT500_HELPFILE, O_RDONLY )) == -1 ) {
32 syslog( LOG_ERR, "open help file: %m" );
34 strcat( reply, "Unable to access the help file. Sorry!\n" );
38 len = read( fd, reply + strlen( reply ), MAXSIZE );
43 syslog( LOG_ERR, "read help file: %m" );
45 strcat( reply, "Unable to read the help file. Sorry!\n" );
49 *(reply + len ) = '\0';