diff options
author | brian <brian@FreeBSD.org> | 1997-12-21 02:11:48 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-12-21 02:11:48 +0000 |
commit | f4475f290dccd6dc6c2660344c6e1164a12657a7 (patch) | |
tree | 72217c8732c7f22460c706885a4adfe8a4600ec5 /usr.sbin | |
parent | 57020bef87ffca1a67e0e27658c9a20635b09abb (diff) | |
download | FreeBSD-src-f4475f290dccd6dc6c2660344c6e1164a12657a7.zip FreeBSD-src-f4475f290dccd6dc6c2660344c6e1164a12657a7.tar.gz |
Allow leading whitespace before '#' when identifying comments.
Submitted by: Dave Bodenstab <imdave@mcs.net>
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ppp/systems.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |