aboutsummaryrefslogtreecommitdiffstats
path: root/shells/bash3/files/patch-redir.c
diff options
context:
space:
mode:
Diffstat (limited to 'shells/bash3/files/patch-redir.c')
-rw-r--r--shells/bash3/files/patch-redir.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/shells/bash3/files/patch-redir.c b/shells/bash3/files/patch-redir.c
new file mode 100644
index 000000000000..ea8c49cb57a0
--- /dev/null
+++ b/shells/bash3/files/patch-redir.c
@@ -0,0 +1,20 @@
+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)
+
+