diff options
author | obrien <obrien@FreeBSD.org> | 2005-05-05 22:42:55 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2005-05-05 22:42:55 +0800 |
commit | 8a230d7a9dee5fca546800d2d6f4eef3424b4492 (patch) | |
tree | 4265745dfd62636540a4d9b572289a4f8820d3f0 /shells | |
parent | fa28cacb3187689e8fca7e1c0676e4c2f1255095 (diff) | |
download | freebsd-ports-gnome-8a230d7a9dee5fca546800d2d6f4eef3424b4492.tar.gz freebsd-ports-gnome-8a230d7a9dee5fca546800d2d6f4eef3424b4492.tar.zst freebsd-ports-gnome-8a230d7a9dee5fca546800d2d6f4eef3424b4492.zip |
Fix this patch file.
PR: 69873
Submitted by: Dave Evans <root@hclb.demon.co.uk>
Diffstat (limited to 'shells')
-rw-r--r-- | shells/bash2/Makefile | 2 | ||||
-rw-r--r-- | shells/bash2/files/patch-redir.c | 31 |
2 files changed, 12 insertions, 21 deletions
diff --git a/shells/bash2/Makefile b/shells/bash2/Makefile index 99ffea9dd5f8..ca18f044f30b 100644 --- a/shells/bash2/Makefile +++ b/shells/bash2/Makefile @@ -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/ diff --git a/shells/bash2/files/patch-redir.c b/shells/bash2/files/patch-redir.c index ea8c49cb57a0..259e4b1d87bc 100644 --- a/shells/bash2/files/patch-redir.c +++ b/shells/bash2/files/patch-redir.c @@ -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) |