summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1998-09-08 14:59:12 +0000
committermillert <millert@openbsd.org>1998-09-08 14:59:12 +0000
commit9dff7e513a267a4fafae67c37814d5ecbdd94be5 (patch)
tree8ef6eb64de31b355719702c2c23a494e33ca7eb8
parentFor powerpc's we want to keep the preinstalled msdos partition in the init (diff)
downloadwireguard-openbsd-9dff7e513a267a4fafae67c37814d5ecbdd94be5.tar.xz
wireguard-openbsd-9dff7e513a267a4fafae67c37814d5ecbdd94be5.zip
Fix comments in .mailrc where there is no space after the hash (#). Noted by pjanzen@foatdi.harvard.edu
-rw-r--r--usr.bin/mail/lex.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/mail/lex.c b/usr.bin/mail/lex.c
index 73ef70c87b5..6e71b694a02 100644
--- a/usr.bin/mail/lex.c
+++ b/usr.bin/mail/lex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lex.c,v 1.17 1998/06/12 18:07:57 millert Exp $ */
+/* $OpenBSD: lex.c,v 1.18 1998/09/08 14:59:12 millert Exp $ */
/* $NetBSD: lex.c,v 1.10 1997/05/17 19:55:13 pk Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)lex.c 8.2 (Berkeley) 4/20/95";
#else
-static char rcsid[] = "$OpenBSD: lex.c,v 1.17 1998/06/12 18:07:57 millert Exp $";
+static char rcsid[] = "$OpenBSD: lex.c,v 1.18 1998/09/08 14:59:12 millert Exp $";
#endif
#endif /* not lint */
@@ -510,6 +510,8 @@ lex(word)
extern const struct cmd cmdtab[];
const struct cmd *cp;
+ if (word[0] == '#')
+ word = "#";
for (cp = &cmdtab[0]; cp->c_name != NULL; cp++)
if (isprefix(word, cp->c_name))
return(cp);