diff options
author | brian <brian@FreeBSD.org> | 1997-11-13 14:43:20 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-11-13 14:43:20 +0000 |
commit | 1b096d24d96081ff46460353a825801f161ba97a (patch) | |
tree | bf625cfae5f3ec15d8d579813e0dd6f06a0157a5 /usr.sbin/ppp/systems.c | |
parent | f38c8654e56487fbac49838d797ac4687ff69200 (diff) | |
download | FreeBSD-src-1b096d24d96081ff46460353a825801f161ba97a.zip FreeBSD-src-1b096d24d96081ff46460353a825801f161ba97a.tar.gz |
Fix command logging (broken with the "allow" command).
Diffstat (limited to 'usr.sbin/ppp/systems.c')
-rw-r--r-- | usr.sbin/ppp/systems.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/ppp/systems.c b/usr.sbin/ppp/systems.c index b7ed109..53ad8de 100644 --- a/usr.sbin/ppp/systems.c +++ b/usr.sbin/ppp/systems.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: systems.c,v 1.24 1997/11/12 15:50:38 brian Exp $ + * $Id: systems.c,v 1.25 1997/11/12 16:34:51 brian Exp $ * * TODO: */ @@ -298,11 +298,10 @@ ReadSystem(const char *name, const char *file, int doexec) InterpretCommand(cp, len, &argc, &argv); allowcmd = argc > 0 && !strcasecmp(*argv, "allow"); if ((!doexec && allowcmd) || (doexec && !allowcmd)) { - LogPrintf(LogCOMMAND, "%s: %s\n", name, cp); olauth = VarLocalAuth; if (VarLocalAuth == LOCAL_NO_AUTH) VarLocalAuth = LOCAL_AUTH; - RunCommand(argc, argv, 0); + RunCommand(argc, argv, name); VarLocalAuth = olauth; } } else if (*cp == '#') { |