CVS commit: [netbsd-6] src/usr.bin/sed

2013-05-11 Thread Jeff Rizzo
Module Name:src
Committed By:   riz
Date:   Sat May 11 21:59:29 UTC 2013

Modified Files:
src/usr.bin/sed [netbsd-6]: process.c sed.1

Log Message:
Pull up following revision(s) (requested by uwe in ticket #888):
usr.bin/sed/process.c: revision 1.39
usr.bin/sed/sed.1: revision 1.30
usr.bin/sed/sed.1: revision 1.31
The change (c) command should start a new cycle.
Apply one line patch I posted in PR #45981 and document this in the
manual page.
Bump date for previous (PR #45981): the change (c) command starts a
new cycle.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.38.8.1 src/usr.bin/sed/process.c
cvs rdiff -u -r1.27 -r1.27.20.1 src/usr.bin/sed/sed.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/sed/process.c
diff -u src/usr.bin/sed/process.c:1.38 src/usr.bin/sed/process.c:1.38.8.1
--- src/usr.bin/sed/process.c:1.38	Mon Apr 13 07:29:55 2009
+++ src/usr.bin/sed/process.c	Sat May 11 21:59:29 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: process.c,v 1.38 2009/04/13 07:29:55 lukem Exp $	*/
+/*	$NetBSD: process.c,v 1.38.8.1 2013/05/11 21:59:29 riz Exp $	*/
 
 /*-
  * Copyright (c) 1992, 1993, 1994
@@ -76,7 +76,7 @@
 #if 0
 static char sccsid[] = @(#)process.c	8.6 (Berkeley) 4/20/94;
 #else
-__RCSID($NetBSD: process.c,v 1.38 2009/04/13 07:29:55 lukem Exp $);
+__RCSID($NetBSD: process.c,v 1.38.8.1 2013/05/11 21:59:29 riz Exp $);
 #endif
 #endif /* not lint */
 
@@ -168,7 +168,7 @@ redirect:
 psl = 0;
 if (cp-a2 == NULL || lastaddr)
 	(void)printf(%s, cp-t);
-break;
+goto new;
 			case 'd':
 pd = 1;
 goto new;

Index: src/usr.bin/sed/sed.1
diff -u src/usr.bin/sed/sed.1:1.27 src/usr.bin/sed/sed.1:1.27.20.1
--- src/usr.bin/sed/sed.1:1.27	Sun Sep 21 16:46:01 2008
+++ src/usr.bin/sed/sed.1	Sat May 11 21:59:29 2013
@@ -1,4 +1,4 @@
-.\	$NetBSD: sed.1,v 1.27 2008/09/21 16:46:01 wiz Exp $
+.\	$NetBSD: sed.1,v 1.27.20.1 2013/05/11 21:59:29 riz Exp $
 .\
 .\ Copyright (c) 1992, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -32,7 +32,7 @@
 .\
 .\	@(#)sed.1	8.2 (Berkeley) 12/30/93
 .\
-.Dd September 21, 2008
+.Dd March 17, 2013
 .Dt SED 1
 .Os
 .Sh NAME
@@ -290,6 +290,7 @@ Delete the pattern space.
 With 0 or 1 address or at the end of a 2-address range,
 .Em text
 is written to the standard output.
+Start the next cycle.
 .sp
 .It [2addr]d
 Delete the pattern space and start the next cycle.



CVS commit: [netbsd-6] src/usr.bin/sed

2013-05-11 Thread Jeff Rizzo
Module Name:src
Committed By:   riz
Date:   Sat May 11 21:59:29 UTC 2013

Modified Files:
src/usr.bin/sed [netbsd-6]: process.c sed.1

Log Message:
Pull up following revision(s) (requested by uwe in ticket #888):
usr.bin/sed/process.c: revision 1.39
usr.bin/sed/sed.1: revision 1.30
usr.bin/sed/sed.1: revision 1.31
The change (c) command should start a new cycle.
Apply one line patch I posted in PR #45981 and document this in the
manual page.
Bump date for previous (PR #45981): the change (c) command starts a
new cycle.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.38.8.1 src/usr.bin/sed/process.c
cvs rdiff -u -r1.27 -r1.27.20.1 src/usr.bin/sed/sed.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [netbsd-6] src/usr.bin/sed

2012-12-25 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Tue Dec 25 21:10:35 UTC 2012

Modified Files:
src/usr.bin/sed [netbsd-6]: compile.c

Log Message:
Pull up following revision(s) (requested by msaitoh in ticket #764):
usr.bin/sed/compile.c: revision 1.38
Fix memory leak.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.37.8.1 src/usr.bin/sed/compile.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/sed/compile.c
diff -u src/usr.bin/sed/compile.c:1.37 src/usr.bin/sed/compile.c:1.37.8.1
--- src/usr.bin/sed/compile.c:1.37	Fri Feb 19 16:35:27 2010
+++ src/usr.bin/sed/compile.c	Tue Dec 25 21:10:35 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: compile.c,v 1.37 2010/02/19 16:35:27 tnn Exp $	*/
+/*	$NetBSD: compile.c,v 1.37.8.1 2012/12/25 21:10:35 snj Exp $	*/
 
 /*-
  * Copyright (c) 1992, 1993
@@ -76,7 +76,7 @@
 #if 0
 static char sccsid[] = @(#)compile.c	8.2 (Berkeley) 4/28/95;
 #else
-__RCSID($NetBSD: compile.c,v 1.37 2010/02/19 16:35:27 tnn Exp $);
+__RCSID($NetBSD: compile.c,v 1.37.8.1 2012/12/25 21:10:35 snj Exp $);
 #endif
 #endif /* not lint */
 
@@ -474,6 +474,7 @@ compile_re(char *p, regex_t **repp)
 		err(COMPILE, RE error: %s, strregerror(eval, *repp));
 	if (maxnsub  (*repp)-re_nsub)
 		maxnsub = (*repp)-re_nsub;
+	free(re);
 	return (p);
 }
 



CVS commit: [netbsd-6] src/usr.bin/sed

2012-12-25 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Tue Dec 25 21:10:35 UTC 2012

Modified Files:
src/usr.bin/sed [netbsd-6]: compile.c

Log Message:
Pull up following revision(s) (requested by msaitoh in ticket #764):
usr.bin/sed/compile.c: revision 1.38
Fix memory leak.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.37.8.1 src/usr.bin/sed/compile.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.