summaryrefslogtreecommitdiff
path: root/usr.sbin/pppd
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-21 20:53:57 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-21 20:53:57 +0000
commit587bbce14a6cbe8219c2f1f6e8ea448e41f56a0e (patch)
tree9643650b96afc5e697d90d3e419cc365c9b37ce8 /usr.sbin/pppd
parent5f0967c0bc424978682979df01a6955ddc36040b (diff)
allow comments in script; netbsd pr#2450; ksulliva@psc.edu
Diffstat (limited to 'usr.sbin/pppd')
-rw-r--r--usr.sbin/pppd/chat/chat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/pppd/chat/chat.c b/usr.sbin/pppd/chat/chat.c
index a53bddcab25..79efb648fa2 100644
--- a/usr.sbin/pppd/chat/chat.c
+++ b/usr.sbin/pppd/chat/chat.c
@@ -31,7 +31,7 @@
*
*/
-static char rcsid[] = "$Id: chat.c,v 1.1 1995/10/18 08:48:00 deraadt Exp $";
+static char rcsid[] = "$Id: chat.c,v 1.2 1996/05/21 20:53:56 deraadt Exp $";
#include <stdio.h>
#include <time.h>
@@ -333,6 +333,8 @@ char *chat_file;
linect++;
sp = buf;
+ if ( *sp == '#')
+ continue;
while (*sp != '\0')
{
if (*sp == ' ' || *sp == '\t')