Browse Source

Juergen Sawinski:


			
			
				rocklinux
			
			
		
Juergen "George" Sawinski 20 years ago
parent
commit
db20ee6844
2 changed files with 22 additions and 2 deletions
  1. +20
    -0
      package/base/sed/no-in-place-wo-file.patch
  2. +2
    -2
      package/base/sed/sed.desc

+ 20
- 0
package/base/sed/no-in-place-wo-file.patch

@ -0,0 +1,20 @@
--- sed-4.1/sed/execute.c 2004-03-13 10:30:39.000000000 +0100
+++ sed-4.1-jsaw/sed/execute.c 2004-06-24 13:35:57.497606648 +0200
@@ -654,7 +654,7 @@
input->read_fn = read_file_line;
- if (in_place_extension)
+ if (in_place_extension && !(name[0] == '-' && name[1] == '\0'))
{
int output_fd;
char *tmpdir = ck_strdup(name), *p;
@@ -701,7 +701,7 @@
if (input->fp != stdin) /* stdin can be reused on tty and tape devices */
ck_fclose(input->fp);
- if (in_place_extension && output_file.fp != NULL)
+ if (in_place_extension && output_file.fp != NULL && output_file.fp != stdout)
{
ck_fclose (output_file.fp);
if (strcmp(in_place_extension, "*") != 0)

+ 2
- 2
package/base/sed/sed.desc

@ -40,8 +40,8 @@
[L] GPL
[S] Stable
[V] 4.0.9
[V] 4.1
[P] X -1---5---9 108.000
[D] 1507173141 sed-4.0.9.tar.gz ftp://ftp.gnu.org/pub/gnu/sed/
[D] 2387309981 sed-4.1.tar.gz ftp://ftp.gnu.org/pub/gnu/sed/

Loading…
Cancel
Save