]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: ignore SIGPIPE here; some downstreams have had this for
authordjm@openbsd.org <djm@openbsd.org>
Fri, 6 Dec 2024 15:17:15 +0000 (15:17 +0000)
committerDamien Miller <djm@mindrot.org>
Sat, 7 Dec 2024 10:16:01 +0000 (21:16 +1100)
years...

OpenBSD-Commit-ID: 73674ee4f8ceb8fc9cb8de71d8ddea0c721eb035

ssh-keyscan.c

index 2a9f47a8d5f10f6d136340c2ccfd1a8673d8a9c7..3436c0b5c7c6d2fd563cbe90c0c80d4567283dde 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keyscan.c,v 1.164 2024/10/18 05:32:51 djm Exp $ */
+/* $OpenBSD: ssh-keyscan.c,v 1.165 2024/12/06 15:17:15 djm Exp $ */
 /*
  * Copyright 1995, 1996 by David Mazieres <dm@lcs.mit.edu>.
  *
@@ -802,6 +802,7 @@ main(int argc, char **argv)
        for (j = 0; j < maxfd; j++)
                read_wait[j].fd = -1;
 
+       ssh_signal(SIGPIPE, SIG_IGN);
        for (j = 0; j < fopt_count; j++) {
                if (argv[j] == NULL)
                        fp = stdin;