summaryrefslogtreecommitdiff
path: root/news/newsfetch/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'news/newsfetch/patches/patch-ac')
-rw-r--r--news/newsfetch/patches/patch-ac19
1 files changed, 19 insertions, 0 deletions
diff --git a/news/newsfetch/patches/patch-ac b/news/newsfetch/patches/patch-ac
new file mode 100644
index 00000000000..37f6380aa8a
--- /dev/null
+++ b/news/newsfetch/patches/patch-ac
@@ -0,0 +1,19 @@
+$NetBSD: patch-ac,v 1.1 2004/03/29 17:31:55 tv Exp $
+
+--- net.c.orig Mon Nov 3 08:47:33 2003
++++ net.c
+@@ -104,12 +104,12 @@ int connect_server(char *server_name, in
+ void create_fd(int socketid, FILE ** sfp)
+ {
+
+- if ((sfp[0] = fdopen(socketid, "w")) == NULL) {
++ if ((sfp[0] = fdopen(socketid, "wb")) == NULL) {
+ perror("fdopen");
+ close(socketid);
+ exit_now(1);
+ }
+- if ((sfp[1] = fdopen(socketid, "r")) == NULL) {
++ if ((sfp[1] = fdopen(socketid, "rb")) == NULL) {
+ perror("fdopen");
+ close(socketid);
+ exit_now(1);