diff options
| author | Brian Somers <brian@FreeBSD.org> | 1998-10-17 12:28:03 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 1998-10-17 12:28:03 +0000 |
| commit | 8c8d43deb7274e9b44c2f76af38d36a7fdf30576 (patch) | |
| tree | 6954fc909f572cb3491e809c4240f5aeec7fe81c | |
| parent | e377bbf860fbb79560fabeff039404591324be87 (diff) | |
Notes
| -rw-r--r-- | usr.sbin/ppp/systems.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/ppp/systems.c b/usr.sbin/ppp/systems.c index e5583f661dd4..9962ed641a23 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.37 1998/06/15 19:05:47 brian Exp $ + * $Id: systems.c,v 1.38 1998/06/15 19:06:25 brian Exp $ * * TODO: */ @@ -315,8 +315,13 @@ ReadSystem(struct bundle *bundle, const char *name, const char *file, if (*cp == '\0') /* empty / comment */ continue; - if (!indent) /* start of next section */ + if (!indent) { /* start of next section */ + wp = strchr(cp, ':'); + if (doexec && (wp == NULL || wp[1] != '\0')) + log_Printf(LogWARN, "Unindented command (%s line %d) - ignored\n", + filename, linenum); break; + } len = strlen(cp); argc = command_Interpret(cp, len, argv); |
