summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-12-17 16:30:06 +1100
committerDamien Miller <djm@mindrot.org>2003-12-17 16:30:06 +1100
commit9836cf8d717455f1bba2dfbf2e41f074fc6bac48 (patch)
tree64edeba6b3898474fa95839ddb506c843d5446fd /ssh.c
parentb9997192a71ae603500e80d52f3e4e24913b87da (diff)
- markus@cvs.openbsd.org 2003/12/09 17:30:05
[ssh.c] don't modify argv for ssh -o; similar to sshd.c 1.283
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ssh.c b/ssh.c
index d29ca37a9..222aaab7f 100644
--- a/ssh.c
+++ b/ssh.c
@@ -40,7 +40,7 @@
40 */ 40 */
41 41
42#include "includes.h" 42#include "includes.h"
43RCSID("$OpenBSD: ssh.c,v 1.204 2003/11/24 00:16:35 dtucker Exp $"); 43RCSID("$OpenBSD: ssh.c,v 1.205 2003/12/09 17:30:05 markus Exp $");
44 44
45#include <openssl/evp.h> 45#include <openssl/evp.h>
46#include <openssl/err.h> 46#include <openssl/err.h>
@@ -205,7 +205,7 @@ main(int ac, char **av)
205 int i, opt, exit_status; 205 int i, opt, exit_status;
206 u_short fwd_port, fwd_host_port; 206 u_short fwd_port, fwd_host_port;
207 char sfwd_port[6], sfwd_host_port[6]; 207 char sfwd_port[6], sfwd_host_port[6];
208 char *p, *cp, buf[256]; 208 char *p, *cp, *line, buf[256];
209 struct stat st; 209 struct stat st;
210 struct passwd *pw; 210 struct passwd *pw;
211 int dummy; 211 int dummy;
@@ -464,9 +464,11 @@ again:
464 break; 464 break;
465 case 'o': 465 case 'o':
466 dummy = 1; 466 dummy = 1;
467 line = xstrdup(optarg);
467 if (process_config_line(&options, host ? host : "", 468 if (process_config_line(&options, host ? host : "",
468 optarg, "command-line", 0, &dummy) != 0) 469 line, "command-line", 0, &dummy) != 0)
469 exit(1); 470 exit(1);
471 xfree(line);
470 break; 472 break;
471 case 's': 473 case 's':
472 subsystem_flag = 1; 474 subsystem_flag = 1;