1 --- openssh-3.8p1/clientloop.c.orig 2003-12-17 06:33:11.000000000 +0100
2 +++ openssh-3.8p1/clientloop.c 2004-02-25 21:25:43.000000000 +0100
7 +/* if we process SIGPIPE */
8 +extern int enable_sigpipe;
11 * Flag to indicate that we have received a window change signal which has
12 * not yet been processed. This will cause a message indicating the new
14 signal(SIGQUIT, signal_handler);
15 if (signal(SIGTERM, SIG_IGN) != SIG_IGN)
16 signal(SIGTERM, signal_handler);
18 + signal(SIGPIPE, signal_handler);
20 signal(SIGWINCH, window_change_handler);
22 --- openssh-3.8p1/ssh.1.orig 2003-12-17 06:33:11.000000000 +0100
23 +++ openssh-3.8p1/ssh.1 2004-02-25 21:28:27.000000000 +0100
25 .Nd OpenSSH SSH client (remote login program)
28 -.Op Fl 1246AaCfgkNnqsTtVvXxY
29 +.Op Fl 1246ABaCfgkNnqsTtVvXxY
30 .Op Fl b Ar bind_address
31 .Op Fl c Ar cipher_spec
34 .It Fl b Ar bind_address
35 Specify the interface to transmit from on machines with multiple
36 interfaces or aliased addresses.
38 +Enables processing of SIGPIPE. Useful when using ssh output as input for
39 +another process, for example in a shell script. Be careful - it may break
40 +port/X11 forwarding when used.
42 Requests compression of all data (including stdin, stdout, stderr, and
43 data for forwarded X11 and TCP/IP connections).
44 --- openssh-3.8p1/ssh.c.orig 2003-12-17 06:33:11.000000000 +0100
45 +++ openssh-3.8p1/ssh.c 2004-02-25 21:30:51.000000000 +0100
47 /* Should we execute a command or invoke a subsystem? */
48 int subsystem_flag = 0;
51 +int enable_sigpipe = 0;
53 /* # of replies received for global requests */
54 static int client_global_request_id = 0;
57 fprintf(stderr, " -F config Config file (default: ~/%s).\n",
58 _PATH_SSH_USER_CONFFILE);
59 fprintf(stderr, " -A Enable authentication agent forwarding.\n");
60 + fprintf(stderr, " -B Enable SIGPIPE processing.\n");
61 fprintf(stderr, " -a Disable authentication agent forwarding (default).\n");
62 fprintf(stderr, " -X Enable X11 connection forwarding.\n");
63 fprintf(stderr, " -Y Enable trusted X11 connection forwarding.\n");
67 while ((opt = getopt(ac, av,
68 - "1246ab:c:e:fgi:kl:m:no:p:qstvxACD:F:I:L:NPR:TVXY")) != -1) {
69 + "1246ab:c:e:fgi:kl:m:no:p:qstvxABCD:F:I:L:NPR:TVXY")) != -1) {
72 options.protocol = SSH_PROTO_1;
75 options.forward_agent = 1;
81 options.gss_deleg_creds = 0;