summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/systems.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-12-21 02:11:48 +0000
committerbrian <brian@FreeBSD.org>1997-12-21 02:11:48 +0000
commitf4475f290dccd6dc6c2660344c6e1164a12657a7 (patch)
tree72217c8732c7f22460c706885a4adfe8a4600ec5 /usr.sbin/ppp/systems.c
parent57020bef87ffca1a67e0e27658c9a20635b09abb (diff)
downloadFreeBSD-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/ppp/systems.c')
-rw-r--r--usr.sbin/ppp/systems.c4
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;
OpenPOWER on IntegriCloud