Fix this patch file.
PR: 69873 Submitted by: Dave Evans <root@hclb.demon.co.uk>
This commit is contained in:
parent
29de58e4ff
commit
7082598552
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134658
@ -8,7 +8,7 @@
|
||||
|
||||
PORTNAME= bash
|
||||
PORTVERSION= 2.05b.007
|
||||
PORTREVISION?= 3
|
||||
PORTREVISION?= 4
|
||||
CATEGORIES= shells
|
||||
MASTER_SITES= ${MASTER_SITE_GNU} \
|
||||
ftp://ftp.cwru.edu/pub/bash/
|
||||
|
@ -1,20 +1,11 @@
|
||||
Index: files/patch-redir.c
|
||||
===================================================================
|
||||
RCS file: files/patch-redir.c
|
||||
diff -N files/patch-redir.c
|
||||
--- /dev/null 1 Jan 1970 00:00:00 -0000
|
||||
+++ files/patch-redir.c 20 Jun 2004 15:40:43 -0000
|
||||
@@ -0,0 +1,11 @@
|
||||
+--- redir.c.orig Sun Jun 20 18:00:47 2004
|
||||
++++ redir.c Sun Jun 20 18:01:25 2004
|
||||
+@@ -263,7 +263,7 @@
|
||||
+ int herelen, n, e;
|
||||
+
|
||||
+ herestr = expand_string_to_string (redirectee->word, 0);
|
||||
+- herelen = strlen (herestr);
|
||||
++ herelen = (herestr == NULL) ? 0 : strlen (herestr);
|
||||
+
|
||||
+ n = write (fd, herestr, herelen);
|
||||
+ if (n == herelen)
|
||||
|
||||
|
||||
--- redir.c.orig Tue Mar 12 12:27:38 2002
|
||||
+++ redir.c Thu May 5 07:41:18 2005
|
||||
@@ -263,7 +263,7 @@ write_here_string (fd, redirectee)
|
||||
int herelen, n, e;
|
||||
|
||||
herestr = expand_string_to_string (redirectee->word, 0);
|
||||
- herelen = strlen (herestr);
|
||||
+ herelen = (herestr == NULL) ? 0 : strlen (herestr);
|
||||
|
||||
n = write (fd, herestr, herelen);
|
||||
if (n == herelen)
|
||||
|
Loading…
Reference in New Issue
Block a user