Deleted Added
sdiff udiff text old ( 44744 ) new ( 56977 )
full compact
1 /*
2 * General front end for stream and datagram IP services. This program logs
3 * the remote host name and then invokes the real daemon. For example,
4 * install as /usr/etc/{tftpd,fingerd,telnetd,ftpd,rlogind,rshd,rexecd},
5 * after saving the real daemons in the directory specified with the
6 * REAL_DAEMON_DIR macro. This arrangement requires that the network daemons
7 * are started by inetd or something similar. Connections and diagnostics
8 * are logged through syslog(3).
9 *
10 * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
11 */
12
13#ifndef lint
14static char sccsid[] = "@(#) tcpd.c 1.10 96/02/11 17:01:32";
15#endif
16
17/* System libraries. */
18

--- 96 unchanged lines hidden (view full) ---

115
116#ifdef HOSTS_ACCESS
117 if (!hosts_access(&request))
118 refuse(&request);
119#endif
120
121 /* Report request and invoke the real daemon program. */
122
123 syslog(allow_severity, "connect from %s", eval_client(&request));
124 closelog();
125 (void) execv(path, argv);
126 syslog(LOG_ERR, "error: cannot execute %s: %m", path);
127 clean_exit(&request);
128 /* NOTREACHED */
129}