summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-11-13 14:44:06 +0000
committerbrian <brian@FreeBSD.org>1997-11-13 14:44:06 +0000
commit8c141b213152f6189ab6f681e110614789fb36e5 (patch)
tree15f8a2465fc495631e1e7bfd1f579a0d0afba204 /usr.sbin/ppp
parent1b096d24d96081ff46460353a825801f161ba97a (diff)
downloadFreeBSD-src-8c141b213152f6189ab6f681e110614789fb36e5.zip
FreeBSD-src-8c141b213152f6189ab6f681e110614789fb36e5.tar.gz
Log a warning when a -direct invocation is denied.
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/main.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c
index abe04a3..f4b08ce 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;
}
OpenPOWER on IntegriCloud