diff options
| author | Brian Somers <brian@FreeBSD.org> | 1997-11-13 14:44:06 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 1997-11-13 14:44:06 +0000 |
| commit | 815624cfab920b899c9e3955443931da8137cac8 (patch) | |
| tree | 29f72902a2b1982f6e00519ce68e9324ea3b4083 /usr.sbin | |
| parent | d9181b051285b6e652b845ea3b1b477d5746d744 (diff) | |
Notes
Diffstat (limited to 'usr.sbin')
| -rw-r--r-- | usr.sbin/ppp/main.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index abe04a395b0d..f4b08ce7199a 100644 --- a/usr.sbin/ppp/main.c +++ b/usr.sbin/ppp/main.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: main.c,v 1.95 1997/11/13 12:10:50 brian Exp $ + * $Id: main.c,v 1.96 1997/11/13 14:43:18 brian Exp $ * * TODO: * o Add commands for traffic summary, version display, etc. @@ -358,6 +358,14 @@ main(int argc, char **argv) ID0init(); if (!ValidSystem(GetLabel())) { fprintf(stderr, "You may not use ppp in this mode with this label\n"); + if (mode & MODE_DIRECT) { + const char *l; + if ((l = GetLabel()) == NULL) + l = "default"; + VarTerm = 0; + LogPrintf(LogWARN, "Label %s rejected -direct connection\n", l); + } + LogClose(); return 1; } |
