[BusyBox-cvs] busybox/editors sed.c,1.106,1.107

Glenn McGrath bug1 at busybox.net
Tue Mar 18 08:38:02 UTC 2003


Update of /var/cvs/busybox/editors
In directory winder:/tmp/cvs-serv22873/editors

Modified Files:
	sed.c 
Log Message:
Match newlines, this fixes matching of ^ or $ when there is a '\n' in the pattern being matched. This fixes cases when the N command is used.


Index: sed.c
===================================================================
RCS file: /var/cvs/busybox/editors/sed.c,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -d -r1.106 -r1.107
--- sed.c	18 Mar 2003 01:19:23 -0000	1.106
+++ sed.c	18 Mar 2003 08:37:57 -0000	1.107
@@ -212,7 +212,8 @@
 
 static int parse_subst_cmd(sed_cmd_t * const sed_cmd, const char *substr)
 {
-	int oldidx, cflags = REG_NEWLINE;
+	int oldidx;
+	int cflags = 0;
 	char *match;
 	int idx = 0;
 	int j;




More information about the busybox-cvs mailing list