summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-05-21 20:53:56 +0000
committerderaadt <deraadt@openbsd.org>1996-05-21 20:53:56 +0000
commit641bb3f04dda001380db66fbfb2088330ffa163b (patch)
tree27fad19e773fba0a42282ba22fadc9558e99b7be
parentChecking out in dirs having the repository as its prefix was sometimes (diff)
downloadwireguard-openbsd-641bb3f04dda001380db66fbfb2088330ffa163b.tar.xz
wireguard-openbsd-641bb3f04dda001380db66fbfb2088330ffa163b.zip
allow comments in script; netbsd pr#2450; ksulliva@psc.edu
-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 29be67b4311..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.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')