aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/command.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1998-01-23 04:36:42 +0000
committerBrian Somers <brian@FreeBSD.org>1998-01-23 04:36:42 +0000
commit0c2bc41c964658e69fd479c2dbb5e8256819fac6 (patch)
tree88db9030bdd81e9eea7c5be7fc98e5c3266863b6 /usr.sbin/ppp/command.c
parent005f91820b8bd49df75fdcb56a52ee8b0534347b (diff)
downloadsrc-0c2bc41c964658e69fd479c2dbb5e8256819fac6.tar.gz
src-0c2bc41c964658e69fd479c2dbb5e8256819fac6.zip
Notes
Diffstat (limited to 'usr.sbin/ppp/command.c')
-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 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;