diff options
author | brian <brian@cvs.openbsd.org> | 1999-05-24 09:05:40 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 1999-05-24 09:05:40 +0000 |
commit | 92448c42bd027f2a113c5123a427a96fee564666 (patch) | |
tree | 587624d6e0a6908ee2f738d39e2d2baeb82dc3a2 | |
parent | ad355e79924bafa15d915833ac2f76d5276bd7eb (diff) |
Don't warn about ``!'' lines being unindented commands in ppp.conf.
-rw-r--r-- | usr.sbin/ppp/ppp/systems.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.sbin/ppp/ppp/systems.c b/usr.sbin/ppp/ppp/systems.c index ac057a30f5d..1605f065b75 100644 --- a/usr.sbin/ppp/ppp/systems.c +++ b/usr.sbin/ppp/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.8 1999/05/09 20:04:03 brian Exp $ + * $Id: systems.c,v 1.9 1999/05/24 09:05:39 brian Exp $ * * TODO: */ @@ -329,10 +329,12 @@ ReadSystem(struct bundle *bundle, const char *name, const char *file, continue; if (!indent) { /* start of next section */ - wp = strchr(cp, ':'); - if ((how == SYSTEM_EXEC) && (wp == NULL || wp[1] != '\0')) - log_Printf(LogWARN, "Unindented command (%s line %d) - ignored\n", - filename, linenum); + if (*cp != '!') { + wp = strchr(cp, ':'); + if ((how == SYSTEM_EXEC) && (wp == NULL || wp[1] != '\0')) + log_Printf(LogWARN, "Unindented command (%s line %d) -" + " ignored\n", filename, linenum); + } break; } |