summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-01-23 04:36:42 +0000
committerbrian <brian@FreeBSD.org>1998-01-23 04:36:42 +0000
commitf1d93f530b4f0bdee95ae7a7a7cbe8b6ad4f98fe (patch)
treefc7ec5041f44ad7661d8d53002317ed7829a0ed9 /usr.sbin
parent6354d4269a48c9efeb8df8134fff12e358a51cf2 (diff)
downloadFreeBSD-src-f1d93f530b4f0bdee95ae7a7a7cbe8b6ad4f98fe.zip
FreeBSD-src-f1d93f530b4f0bdee95ae7a7a7cbe8b6ad4f98fe.tar.gz
Don't allow manual dialing unless in auto or interactive mode.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/command.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c
index 7a9a526..552af93 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.128 1998/01/18 20:49:15 brian Exp $
+ * $Id: command.c,v 1.129 1998/01/20 22:47:35 brian Exp $
*
*/
#include <sys/param.h>
@@ -172,6 +172,12 @@ DialCommand(struct cmdargs const *arg)
return 0;
}
+ if ((mode & MODE_DAEMON) && !(mode & MODE_AUTO)) {
+ LogPrintf(LogWARN,
+ "Manual dial is only available in auto and interactive mode\n");
+ return 1;
+ }
+
if (arg->argc > 0 && (res = LoadCommand(arg)) != 0)
return res;
OpenPOWER on IntegriCloud