diff options
author | sos <sos@FreeBSD.org> | 1996-10-10 11:27:35 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 1996-10-10 11:27:35 +0000 |
commit | aedb306d8bb4bc67c171ce36c6ba12e38b2ff554 (patch) | |
tree | faa036495af8277f634ab2346eda4a03a462b5e2 | |
parent | 81a40401a62cc121ae32e81467b6ebbc527aecd9 (diff) | |
download | FreeBSD-src-aedb306d8bb4bc67c171ce36c6ba12e38b2ff554.zip FreeBSD-src-aedb306d8bb4bc67c171ce36c6ba12e38b2ff554.tar.gz |
Allow shell commands in all modes.
Old behavior can be had with define SHELL_ONLY_INTERACTIVELY
-rw-r--r-- | usr.sbin/ppp/command.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index a03e23c..67a45a1 100644 --- a/usr.sbin/ppp/command.c +++ b/usr.sbin/ppp/command.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: command.c,v 1.20 1996/10/06 13:32:27 jkh Exp $ + * $Id: command.c,v 1.21 1996/10/07 10:01:17 sos Exp $ * */ #include <sys/types.h> @@ -166,7 +166,7 @@ char **argv; if((shell = getenv("SHELL")) == 0) { shell = _PATH_BSHELL; } - +#ifdef SHELL_ONLY_INTERACTIVELY #ifndef HAVE_SHELL_CMD_WITH_ANY_MODE if( mode != MODE_INTER) { fprintf(stdout, @@ -180,7 +180,7 @@ char **argv; return(1); } #endif /* HAVE_SHELL_CMD_WITH_ANY_MODE */ - +#endif /* SHELL_ONLY_INTERACTIVELY */ if((shpid = fork()) == 0) { int dtablesize, i ; |