1 --- openssh-4.0p1/clientloop.c.orig 2005-03-01 11:24:33.000000000 +0100
2 +++ openssh-4.0p1/clientloop.c 2005-03-10 15:10:05.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);
19 signal(SIGWINCH, window_change_handler);
22 diff -urN openssh-3.9p1.org/ssh.0 openssh-3.9p1/ssh.0
23 --- openssh-3.9p1.org/ssh.0 2004-08-17 19:03:29.327565840 +0200
24 +++ openssh-3.9p1/ssh.0 2004-08-17 19:03:41.809668272 +0200
26 that enable them to authenticate using the identities loaded into
29 + -B Enable SIGPIPE processing.
31 -a Disables forwarding of the authentication agent connection.
34 --- openssh-4.0p1/ssh.1.orig 2005-03-09 01:00:06.000000000 +0100
35 +++ openssh-4.0p1/ssh.1 2005-03-10 15:10:40.000000000 +0100
37 .Nd OpenSSH SSH client (remote login program)
40 -.Op Fl 1246AaCfgKkMNnqsTtVvXxY
41 +.Op Fl 1246AaBCfgKkMNnqsTtVvXxY
42 .Op Fl b Ar bind_address
43 .Op Fl c Ar cipher_spec
46 on the local machine as the source address
48 Only useful on systems with more than one address.
50 +Enables processing of SIGPIPE. Useful when using ssh output as input for
51 +another process, for example in a shell script. Be careful - it may break
52 +port/X11 forwarding when used.
54 Requests compression of all data (including stdin, stdout, stderr, and
55 data for forwarded X11 and TCP/IP connections).
56 --- openssh-4.0p1/ssh.c.orig 2005-03-02 02:04:33.000000000 +0100
57 +++ openssh-4.0p1/ssh.c 2005-03-10 15:11:10.000000000 +0100
59 /* Should we execute a command or invoke a subsystem? */
60 int subsystem_flag = 0;
63 +int enable_sigpipe = 0;
65 /* # of replies received for global requests */
66 static int client_global_request_id = 0;
72 -"usage: ssh [-1246AaCfgKkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]\n"
73 +"usage: ssh [-1246AaBCfgKkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]\n"
74 " [-D [bind_address:]port] [-e escape_char] [-F configfile]\n"
75 " [-i identity_file] [-L [bind_address:]port:host:hostport]\n"
76 " [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]\n"
80 while ((opt = getopt(ac, av,
81 - "1246ab:c:e:fgi:kl:m:no:p:qstvxACD:F:I:KL:MNO:PR:S:TVw:XY")) != -1) {
82 + "1246ab:c:e:fgi:kl:m:no:p:qstvxABCD:F:I:KL:MNO:PR:S:TVw:XY")) != -1) {
85 options.protocol = SSH_PROTO_1;
88 options.forward_agent = 1;
94 options.gss_deleg_creds = 0;