1 diff -up openssh-5.6p1/ssh-keygen.0.keygen openssh-5.6p1/ssh-keygen.0
2 --- openssh-5.6p1/ssh-keygen.0.keygen 2010-08-22 16:30:03.000000000 +0200
3 +++ openssh-5.6p1/ssh-keygen.0 2010-08-23 12:37:19.000000000 +0200
5 ssh-keygen - authentication key generation, management and conversion
8 - ssh-keygen [-q] [-b bits] -t type [-N new_passphrase] [-C comment]
9 + ssh-keygen [-q] [-o] [-b bits] -t type [-N new_passphrase] [-C comment]
11 ssh-keygen -p [-P old_passphrase] [-N new_passphrase] [-f keyfile]
12 ssh-keygen -i [-m key_format] [-f input_keyfile]
13 @@ -232,6 +232,8 @@ DESCRIPTION
15 -q Silence ssh-keygen. Used by /etc/rc when creating a new key.
17 + -o Overwrite the key without prompting user.
20 Removes all keys belonging to hostname from a known_hosts file.
21 This option is useful to delete hashed hosts (see the -H option
22 diff -up openssh-5.6p1/ssh-keygen.1.keygen openssh-5.6p1/ssh-keygen.1
23 --- openssh-5.6p1/ssh-keygen.1.keygen 2010-08-05 05:05:32.000000000 +0200
24 +++ openssh-5.6p1/ssh-keygen.1 2010-08-23 12:36:25.000000000 +0200
32 .Op Fl N Ar new_passphrase
33 @@ -397,6 +398,8 @@ Silence
36 when creating a new key.
38 +Overwrite the key without prompting user.
40 Removes all keys belonging to
42 diff -up openssh-5.6p1/ssh-keygen.c.keygen openssh-5.6p1/ssh-keygen.c
43 --- openssh-5.6p1/ssh-keygen.c.keygen 2010-08-05 05:05:32.000000000 +0200
44 +++ openssh-5.6p1/ssh-keygen.c 2010-08-23 12:34:40.000000000 +0200
45 @@ -72,6 +72,7 @@ int change_passphrase = 0;
46 int change_comment = 0;
51 int log_level = SYSLOG_LEVEL_INFO;
53 @@ -1798,7 +1799,7 @@ main(int argc, char **argv)
57 - while ((opt = getopt(argc, argv, "degiqpclBHLhvxXyF:b:f:t:D:I:P:m:N:n:"
58 + while ((opt = getopt(argc, argv, "degiqopclBHLhvxXyF:b:f:t:D:I:P:m:N:n:"
59 "O:C:r:g:R:T:G:M:S:s:a:V:W:z:")) != -1) {
62 @@ -1878,6 +1879,9 @@ main(int argc, char **argv)
72 @@ -2124,7 +2128,7 @@ main(int argc, char **argv)
75 /* If the file already exists, ask the user to confirm. */
76 - if (stat(identity_file, &st) >= 0) {
77 + if (!overwrite && stat(identity_file, &st) >= 0) {
79 printf("%s already exists.\n", identity_file);
80 printf("Overwrite (y/n)? ");