|
Lines 72-77
int change_passphrase = 0;
Link Here
|
| 72 |
int change_comment = 0; |
72 |
int change_comment = 0; |
| 73 |
|
73 |
|
| 74 |
int quiet = 0; |
74 |
int quiet = 0; |
|
|
75 |
int overwrite = 0; |
| 75 |
|
76 |
|
| 76 |
int log_level = SYSLOG_LEVEL_INFO; |
77 |
int log_level = SYSLOG_LEVEL_INFO; |
| 77 |
|
78 |
|
|
Lines 1798-1804
main(int argc, char **argv)
Link Here
|
| 1798 |
exit(1); |
1799 |
exit(1); |
| 1799 |
} |
1800 |
} |
| 1800 |
|
1801 |
|
| 1801 |
while ((opt = getopt(argc, argv, "degiqpclBHLhvxXyF:b:f:t:D:I:P:m:N:n:" |
1802 |
while ((opt = getopt(argc, argv, "degiqopclBHLhvxXyF:b:f:t:D:I:P:m:N:n:" |
| 1802 |
"O:C:r:g:R:T:G:M:S:s:a:V:W:z:")) != -1) { |
1803 |
"O:C:r:g:R:T:G:M:S:s:a:V:W:z:")) != -1) { |
| 1803 |
switch (opt) { |
1804 |
switch (opt) { |
| 1804 |
case 'b': |
1805 |
case 'b': |
|
Lines 1878-1883
main(int argc, char **argv)
Link Here
|
| 1878 |
case 'q': |
1879 |
case 'q': |
| 1879 |
quiet = 1; |
1880 |
quiet = 1; |
| 1880 |
break; |
1881 |
break; |
|
|
1882 |
case 'o': |
| 1883 |
overwrite = 1; |
| 1884 |
break; |
| 1881 |
case 'e': |
1885 |
case 'e': |
| 1882 |
case 'x': |
1886 |
case 'x': |
| 1883 |
/* export key */ |
1887 |
/* export key */ |
|
Lines 2124-2130
main(int argc, char **argv)
Link Here
|
| 2124 |
} |
2128 |
} |
| 2125 |
} |
2129 |
} |
| 2126 |
/* If the file already exists, ask the user to confirm. */ |
2130 |
/* If the file already exists, ask the user to confirm. */ |
| 2127 |
if (stat(identity_file, &st) >= 0) { |
2131 |
if (!overwrite && stat(identity_file, &st) >= 0) { |
| 2128 |
char yesno[3]; |
2132 |
char yesno[3]; |
| 2129 |
printf("%s already exists.\n", identity_file); |
2133 |
printf("%s already exists.\n", identity_file); |
| 2130 |
printf("Overwrite (y/n)? "); |
2134 |
printf("Overwrite (y/n)? "); |