aboutsummaryrefslogtreecommitdiffstats
path: root/community/heirloom-mailx/mailx-12.5-fname-null.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/heirloom-mailx/mailx-12.5-fname-null.patch')
-rw-r--r--community/heirloom-mailx/mailx-12.5-fname-null.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/community/heirloom-mailx/mailx-12.5-fname-null.patch b/community/heirloom-mailx/mailx-12.5-fname-null.patch
new file mode 100644
index 0000000000..3b3fb58c5a
--- /dev/null
+++ b/community/heirloom-mailx/mailx-12.5-fname-null.patch
@@ -0,0 +1,12 @@
+diff -upr mailx-12.5.orig/names.c mailx-12.5/names.c
+--- mailx-12.5.orig/names.c 2006-03-04 01:32:16.000000000 +0100
++++ mailx-12.5/names.c 2012-11-01 15:28:43.883573793 +0100
+@@ -360,7 +360,7 @@ outof(struct name *names, FILE *fo, stru
+ free_child(pid);
+ } else {
+ int f;
+- if ((fout = Zopen(fname, "a", NULL)) == NULL) {
++ if ((fname == NULL) || ((fout = Zopen(fname, "a", NULL)) == NULL)) {
+ perror(fname);
+ senderr++;
+ goto cant;