]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blobdiff - openssh/patches/openssh-5.8p2-sigpipe.patch
openssh: Update to 5.9p1.
[people/amarx/ipfire-3.x.git] / openssh / patches / openssh-5.8p2-sigpipe.patch
diff --git a/openssh/patches/openssh-5.8p2-sigpipe.patch b/openssh/patches/openssh-5.8p2-sigpipe.patch
new file mode 100644 (file)
index 0000000..56af045
--- /dev/null
@@ -0,0 +1,12 @@
+diff -up openssh-5.8p2/ssh-keyscan.c.sigpipe openssh-5.8p2/ssh-keyscan.c
+--- openssh-5.8p2/ssh-keyscan.c.sigpipe        2011-08-23 18:30:33.873025916 +0200
++++ openssh-5.8p2/ssh-keyscan.c        2011-08-23 18:32:24.574025362 +0200
+@@ -715,6 +715,8 @@ main(int argc, char **argv)
+               fdlim_set(maxfd);
+       fdcon = xcalloc(maxfd, sizeof(con));
++      signal(SIGPIPE, SIG_IGN);
++
+       read_wait_nfdset = howmany(maxfd, NFDBITS);
+       read_wait = xcalloc(read_wait_nfdset, sizeof(fd_mask));