summaryrefslogtreecommitdiff
path: root/usr.bin/mg/grep.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/mg/grep.c')
-rw-r--r--usr.bin/mg/grep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mg/grep.c b/usr.bin/mg/grep.c
index d2db802c87f..eaea4f6a582 100644
--- a/usr.bin/mg/grep.c
+++ b/usr.bin/mg/grep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grep.c,v 1.3 2002/02/14 14:24:21 deraadt Exp $ */
+/* $OpenBSD: grep.c,v 1.4 2002/03/16 19:30:29 vincent Exp $ */
/*
* Copyright (c) 2001 Artur Grabowski <art@openbsd.org>. All rights reserved.
*
@@ -150,6 +150,7 @@ compile_mode(char *name, char *command)
bp = bfind(name, TRUE);
if (bclear(bp) != TRUE)
return NULL;
+ bp->b_flag |= BFREADONLY;
addlinef(bp, "Running (%s).", command);
addline(bp, "");