home *** CD-ROM | disk | FTP | other *** search
- *** announce.c.orig Sat Jun 18 17:10:48 1988
- --- announce.c Fri Sep 14 11:33:11 1990
- ***************
- *** 28,33 ****
- --- 28,34 ----
- #include <sys/wait.h>
- #include <errno.h>
- #include <syslog.h>
- + #include <pwd.h>
-
- #include <protocols/talkd.h>
-
- ***************
- *** 83,88 ****
- --- 84,96 ----
- FILE *tf;
- struct stat stbuf;
-
- + if (request->r_tty[0] == '/')
- + {
- + /* Answering machine. */
- + execlp("talkanswer","talkanswer",request->r_name,
- + request->l_name,remote_machine,(char *) 0);
- + return(FAILED);
- + }
- (void)sprintf(full_tty, "/dev/%s", request->r_tty);
- if (access(full_tty, 0) != 0)
- return (FAILED);
- *** process.c.orig Sat Jun 18 17:10:49 1988
- --- process.c Fri Sep 14 11:33:06 1990
- ***************
- *** 122,129 ****
- /* see if the user is logged */
- result = find_user(mp->r_name, mp->r_tty);
- if (result != SUCCESS) {
- ! rp->answer = result;
- ! return;
- }
- #define satosin(sa) ((struct sockaddr_in *)(sa))
- hp = gethostbyaddr(&satosin(&mp->ctl_addr)->sin_addr,
- --- 122,129 ----
- /* see if the user is logged */
- result = find_user(mp->r_name, mp->r_tty);
- if (result != SUCCESS) {
- ! mp->r_tty[0] = '/';
- ! result = SUCCESS;
- }
- #define satosin(sa) ((struct sockaddr_in *)(sa))
- hp = gethostbyaddr(&satosin(&mp->ctl_addr)->sin_addr,
-