diff options
author | brian <brian@FreeBSD.org> | 1998-01-23 04:36:42 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-01-23 04:36:42 +0000 |
commit | f1d93f530b4f0bdee95ae7a7a7cbe8b6ad4f98fe (patch) | |
tree | fc7ec5041f44ad7661d8d53002317ed7829a0ed9 /usr.sbin | |
parent | 6354d4269a48c9efeb8df8134fff12e358a51cf2 (diff) | |
download | FreeBSD-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.c | 8 |
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; |