summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/main.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-11-13 14:43:20 +0000
committerbrian <brian@FreeBSD.org>1997-11-13 14:43:20 +0000
commit1b096d24d96081ff46460353a825801f161ba97a (patch)
treebf625cfae5f3ec15d8d579813e0dd6f06a0157a5 /usr.sbin/ppp/main.c
parentf38c8654e56487fbac49838d797ac4687ff69200 (diff)
downloadFreeBSD-src-1b096d24d96081ff46460353a825801f161ba97a.zip
FreeBSD-src-1b096d24d96081ff46460353a825801f161ba97a.tar.gz
Fix command logging (broken with the "allow" command).
Diffstat (limited to 'usr.sbin/ppp/main.c')
-rw-r--r--usr.sbin/ppp/main.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c
index 0da1bf5..abe04a3 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.94 1997/11/13 12:09:53 brian Exp $
+ * $Id: main.c,v 1.95 1997/11/13 12:10:50 brian Exp $
*
* TODO:
* o Add commands for traffic summary, version display, etc.
@@ -562,14 +562,9 @@ ReadTty()
aft_cmd = 1;
if (linebuff[n-1] == '\n')
linebuff[--n] = '\0';
- if (n) {
- if (IsInteractive(0))
- LogPrintf(LogCOMMAND, "%s\n", linebuff);
- else
- LogPrintf(LogCOMMAND, "Client: %s\n", linebuff);
- DecodeCommand(linebuff, n, 1);
- } else
- Prompt();
+ if (n)
+ DecodeCommand(linebuff, n, IsInteractive(0) ? NULL : "Client");
+ Prompt();
} else {
LogPrintf(LogPHASE, "client connection closed.\n");
oVarTerm = VarTerm;
OpenPOWER on IntegriCloud