diff options
author | brian <brian@FreeBSD.org> | 1999-05-24 09:04:35 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-05-24 09:04:35 +0000 |
commit | c1cb414bf9f2047a959e702d8e2c3aa9f3a0d5be (patch) | |
tree | e3a0b9d022ed795be56d3dd968bdb5df6c448b6b | |
parent | 96b513fe016ed1f5a8e3ee6b5bef707771e987e3 (diff) | |
download | FreeBSD-src-c1cb414bf9f2047a959e702d8e2c3aa9f3a0d5be.zip FreeBSD-src-c1cb414bf9f2047a959e702d8e2c3aa9f3a0d5be.tar.gz |
Don't warn about ``!'' lines being unindented commands in ppp.conf.
-rw-r--r-- | usr.sbin/ppp/systems.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.sbin/ppp/systems.c b/usr.sbin/ppp/systems.c index e3e4284..6358d9f 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.43 1999/05/08 11:07:43 brian Exp $ + * $Id: systems.c,v 1.44 1999/05/09 20:02:26 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; } |