summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2007-01-05 16:22:57 +1100
committerDamien Miller <djm@mindrot.org>2007-01-05 16:22:57 +1100
commitdf8b7db16e6ac2cfc216167af0ff1f338e196658 (patch)
treeb4046f83668bd55810abf73660895c964c7ff73c
parentbe6db83462c0d4a7067ab303644440026c93d685 (diff)
- (djm) OpenBSD CVS Sync
- deraadt@cvs.openbsd.org 2006/11/14 19:41:04 [ssh-keygen.c] use argc and argv not some made up short form
-rw-r--r--ChangeLog8
-rw-r--r--ssh-keygen.c12
2 files changed, 13 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index c14cf03d8..cd1c913f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
120070105
2 - (djm) OpenBSD CVS Sync
3 - deraadt@cvs.openbsd.org 2006/11/14 19:41:04
4 [ssh-keygen.c]
5 use argc and argv not some made up short form
6
120061205 720061205
2 - (djm) [auth.c] Fix NULL pointer dereference in fakepw(). Crash would 8 - (djm) [auth.c] Fix NULL pointer dereference in fakepw(). Crash would
3 occur if the server did not have the privsep user and an invalid user 9 occur if the server did not have the privsep user and an invalid user
@@ -2617,4 +2623,4 @@
2617 OpenServer 6 and add osr5bigcrypt support so when someone migrates 2623 OpenServer 6 and add osr5bigcrypt support so when someone migrates
2618 passwords between UnixWare and OpenServer they will still work. OK dtucker@ 2624 passwords between UnixWare and OpenServer they will still work. OK dtucker@
2619 2625
2620$Id: ChangeLog,v 1.4591 2006/12/05 11:58:09 djm Exp $ 2626$Id: ChangeLog,v 1.4592 2007/01/05 05:22:57 djm Exp $
diff --git a/ssh-keygen.c b/ssh-keygen.c
index 1f42b9358..dfa1166c2 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-keygen.c,v 1.155 2006/11/06 21:25:28 markus Exp $ */ 1/* $OpenBSD: ssh-keygen.c,v 1.156 2006/11/14 19:41:04 deraadt Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1049,7 +1049,7 @@ usage(void)
1049 * Main program for key management. 1049 * Main program for key management.
1050 */ 1050 */
1051int 1051int
1052main(int ac, char **av) 1052main(int argc, char **argv)
1053{ 1053{
1054 char dotsshdir[MAXPATHLEN], comment[1024], *passphrase1, *passphrase2; 1054 char dotsshdir[MAXPATHLEN], comment[1024], *passphrase1, *passphrase2;
1055 char out_file[MAXPATHLEN], *reader_id = NULL; 1055 char out_file[MAXPATHLEN], *reader_id = NULL;
@@ -1074,7 +1074,7 @@ main(int ac, char **av)
1074 __progname = ssh_get_progname(av[0]); 1074 __progname = ssh_get_progname(av[0]);
1075 1075
1076 SSLeay_add_all_algorithms(); 1076 SSLeay_add_all_algorithms();
1077 log_init(av[0], SYSLOG_LEVEL_INFO, SYSLOG_FACILITY_USER, 1); 1077 log_init(argv[0], SYSLOG_LEVEL_INFO, SYSLOG_FACILITY_USER, 1);
1078 1078
1079 init_rng(); 1079 init_rng();
1080 seed_rng(); 1080 seed_rng();
@@ -1090,7 +1090,7 @@ main(int ac, char **av)
1090 exit(1); 1090 exit(1);
1091 } 1091 }
1092 1092
1093 while ((opt = getopt(ac, av, 1093 while ((opt = getopt(argc, argv,
1094 "degiqpclBHvxXyF:b:f:t:U:D:P:N:C:r:g:R:T:G:M:S:a:W:")) != -1) { 1094 "degiqpclBHvxXyF:b:f:t:U:D:P:N:C:r:g:R:T:G:M:S:a:W:")) != -1) {
1095 switch (opt) { 1095 switch (opt) {
1096 case 'b': 1096 case 'b':
@@ -1223,9 +1223,9 @@ main(int ac, char **av)
1223 } 1223 }
1224 1224
1225 /* reinit */ 1225 /* reinit */
1226 log_init(av[0], log_level, SYSLOG_FACILITY_USER, 1); 1226 log_init(argv[0], log_level, SYSLOG_FACILITY_USER, 1);
1227 1227
1228 if (optind < ac) { 1228 if (optind < argc) {
1229 printf("Too many arguments.\n"); 1229 printf("Too many arguments.\n");
1230 usage(); 1230 usage();
1231 } 1231 }