diff options
| -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 7a9a526e2ba2..552af93c2019 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; |
