From f4475f290dccd6dc6c2660344c6e1164a12657a7 Mon Sep 17 00:00:00 2001 From: brian Date: Sun, 21 Dec 1997 02:11:48 +0000 Subject: Allow leading whitespace before '#' when identifying comments. Submitted by: Dave Bodenstab --- usr.sbin/ppp/systems.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.sbin/ppp') diff --git a/usr.sbin/ppp/systems.c b/usr.sbin/ppp/systems.c index cb79087..595cc21 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.30 1997/12/17 21:21:42 brian Exp $ + * $Id: systems.c,v 1.31 1997/12/17 21:22:01 brian Exp $ * * TODO: */ @@ -288,6 +288,8 @@ ReadSystem(const char *name, const char *file, int doexec) if (issep(*cp)) { n = strspn(cp, " \t"); cp += n; + if (*cp == '#') + continue; len = strlen(cp); if (!len) continue; -- cgit v1.1