aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/systems.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1997-12-21 02:11:48 +0000
committerBrian Somers <brian@FreeBSD.org>1997-12-21 02:11:48 +0000
commitaa2e5be7ae18e1eac53c92c8a26fc4afeb4dbacd (patch)
tree8fd918b916ef3f8c0e7127d499ed48364f6e1549 /usr.sbin/ppp/systems.c
parentbb1d272c41d9e17131f306a47daa80bf55c6d57e (diff)
downloadsrc-aa2e5be7ae18e1eac53c92c8a26fc4afeb4dbacd.tar.gz
src-aa2e5be7ae18e1eac53c92c8a26fc4afeb4dbacd.zip
Allow leading whitespace before '#' when identifying comments.
Submitted by: Dave Bodenstab <imdave@mcs.net>
Notes
Notes: svn path=/head/; revision=31913
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 cb79087c6828..595cc2143a80 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;