summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--ssh.c9
2 files changed, 11 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 82d5c20ca..487cbe04a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
120090621
2 - (dtucker) OpenBSD CVS Sync
3 - markus@cvs.openbsd.org 2009/03/17 21:37:00
4 [ssh.c]
5 pass correct argv[0] to openlog(); ok djm@
6
120090616 720090616
2 - (dtucker) [configure.ac defines.h] Bug #1607: handle the case where fsid_t 8 - (dtucker) [configure.ac defines.h] Bug #1607: handle the case where fsid_t
3 is a struct with a __val member. Fixes build on, eg, Redhat 6.2. 9 is a struct with a __val member. Fixes build on, eg, Redhat 6.2.
diff --git a/ssh.c b/ssh.c
index 9d43bb74f..96134680d 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh.c,v 1.324 2009/02/12 03:00:56 djm Exp $ */ 1/* $OpenBSD: ssh.c,v 1.325 2009/03/17 21:37:00 markus Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -204,7 +204,7 @@ int
204main(int ac, char **av) 204main(int ac, char **av)
205{ 205{
206 int i, opt, exit_status, use_syslog; 206 int i, opt, exit_status, use_syslog;
207 char *p, *cp, *line, buf[256]; 207 char *p, *cp, *line, *argv0, buf[256];
208 struct stat st; 208 struct stat st;
209 struct passwd *pw; 209 struct passwd *pw;
210 int dummy, timeout_ms; 210 int dummy, timeout_ms;
@@ -270,6 +270,7 @@ main(int ac, char **av)
270 /* Parse command-line arguments. */ 270 /* Parse command-line arguments. */
271 host = NULL; 271 host = NULL;
272 use_syslog = 0; 272 use_syslog = 0;
273 argv0 = av[0];
273 274
274 again: 275 again:
275 while ((opt = getopt(ac, av, "1246ab:c:e:fgi:kl:m:no:p:qstvx" 276 while ((opt = getopt(ac, av, "1246ab:c:e:fgi:kl:m:no:p:qstvx"
@@ -600,7 +601,7 @@ main(int ac, char **av)
600 * Initialize "log" output. Since we are the client all output 601 * Initialize "log" output. Since we are the client all output
601 * actually goes to stderr. 602 * actually goes to stderr.
602 */ 603 */
603 log_init(av[0], 604 log_init(argv0,
604 options.log_level == -1 ? SYSLOG_LEVEL_INFO : options.log_level, 605 options.log_level == -1 ? SYSLOG_LEVEL_INFO : options.log_level,
605 SYSLOG_FACILITY_USER, !use_syslog); 606 SYSLOG_FACILITY_USER, !use_syslog);
606 607
@@ -628,7 +629,7 @@ main(int ac, char **av)
628 channel_set_af(options.address_family); 629 channel_set_af(options.address_family);
629 630
630 /* reinit */ 631 /* reinit */
631 log_init(av[0], options.log_level, SYSLOG_FACILITY_USER, !use_syslog); 632 log_init(argv0, options.log_level, SYSLOG_FACILITY_USER, !use_syslog);
632 633
633 seed_rng(); 634 seed_rng();
634 635