diff options
author | CoprDistGit <infra@openeuler.org> | 2023-10-02 04:02:17 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-10-02 04:02:17 +0000 |
commit | 24b6ed9bc1ef1538b8f3e254b30b1006f5e4d78f (patch) | |
tree | e2725d205951345a1c853965086be06d6a6cbf59 /openssh-5.8p2-sigpipe.patch | |
parent | c7ba49a1e66ed27d507eafa4da2b81838a2afa64 (diff) |
automatic import of openssh
Diffstat (limited to 'openssh-5.8p2-sigpipe.patch')
-rw-r--r-- | openssh-5.8p2-sigpipe.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/openssh-5.8p2-sigpipe.patch b/openssh-5.8p2-sigpipe.patch new file mode 100644 index 0000000..554e346 --- /dev/null +++ b/openssh-5.8p2-sigpipe.patch @@ -0,0 +1,14 @@ +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,9 @@ main(int argc, char **argv) + if (maxfd > fdlim_get(0)) + fdlim_set(maxfd); + fdcon = xcalloc(maxfd, sizeof(con)); ++ ++ signal(SIGPIPE, SIG_IGN); ++ + read_wait = xcalloc(maxfd, sizeof(struct pollfd)); + for (j = 0; j < maxfd; j++) + read_wait[j].fd = -1; + |