summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/command.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>1996-10-10 11:27:35 +0000
committersos <sos@FreeBSD.org>1996-10-10 11:27:35 +0000
commitaedb306d8bb4bc67c171ce36c6ba12e38b2ff554 (patch)
treefaa036495af8277f634ab2346eda4a03a462b5e2 /usr.sbin/ppp/command.c
parent81a40401a62cc121ae32e81467b6ebbc527aecd9 (diff)
downloadFreeBSD-src-aedb306d8bb4bc67c171ce36c6ba12e38b2ff554.zip
FreeBSD-src-aedb306d8bb4bc67c171ce36c6ba12e38b2ff554.tar.gz
Allow shell commands in all modes.
Old behavior can be had with define SHELL_ONLY_INTERACTIVELY
Diffstat (limited to 'usr.sbin/ppp/command.c')
-rw-r--r--usr.sbin/ppp/command.c6
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 ;
OpenPOWER on IntegriCloud