Deleted Added
full compact
shell_cmd.c (44744) shell_cmd.c (257398)
1 /*
2 * shell_cmd() takes a shell command after %<character> substitutions. The
3 * command is executed by a /bin/sh child process, with standard input,
4 * standard output and standard error connected to /dev/null.
5 *
6 * Diagnostics are reported through syslog(3).
7 *
8 * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
9 */
10
11#ifndef lint
12static char sccsid[] = "@(#) shell_cmd.c 1.5 94/12/28 17:42:44";
13#endif
14
15/* System libraries. */
16
17#include <sys/types.h>
18#include <sys/param.h>
1 /*
2 * shell_cmd() takes a shell command after %<character> substitutions. The
3 * command is executed by a /bin/sh child process, with standard input,
4 * standard output and standard error connected to /dev/null.
5 *
6 * Diagnostics are reported through syslog(3).
7 *
8 * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
9 */
10
11#ifndef lint
12static char sccsid[] = "@(#) shell_cmd.c 1.5 94/12/28 17:42:44";
13#endif
14
15/* System libraries. */
16
17#include <sys/types.h>
18#include <sys/param.h>
19#include <sys/wait.h>
19#include <signal.h>
20#include <stdio.h>
21#include <syslog.h>
22#include <string.h>
20#include <signal.h>
21#include <stdio.h>
22#include <syslog.h>
23#include <string.h>
24#include <unistd.h>
25#include <fcntl.h>
23
24extern void exit();
25
26/* Local stuff. */
27
28#include "tcpd.h"
29
30/* Forward declarations. */

--- 62 unchanged lines hidden ---
26
27extern void exit();
28
29/* Local stuff. */
30
31#include "tcpd.h"
32
33/* Forward declarations. */

--- 62 unchanged lines hidden ---