generic: 6.6: backport patch adding support for rgmii-id in stmmac-ipq806x
[openwrt/openwrt.git] / package / network / services / dropbear / patches / 018-dropbearkey-add-alias-to-ssh-keygen.patch
1 From 806586b585806cbe32013bcd3af3847278972060 Mon Sep 17 00:00:00 2001
2 From: Sergey Ponomarev <stokito@gmail.com>
3 Date: Sun, 10 Dec 2023 10:31:56 +0200
4 Subject: dropbearkey: add alias to ssh-keygen
5
6 The dropbearkey is partially compatible with ssh-keygen and can be used as an alias.
7
8 Closes: #263
9 ---
10 dbmulti.c | 5 +++--
11 1 file changed, 3 insertions(+), 2 deletions(-)
12
13 --- a/dbmulti.c
14 +++ b/dbmulti.c
15 @@ -41,7 +41,8 @@ static int runprog(const char *multipath
16 }
17 #endif
18 #ifdef DBMULTI_dropbearkey
19 - if (strcmp(progname, "dropbearkey") == 0) {
20 + if (strcmp(progname, "dropbearkey") == 0
21 + || strcmp(progname, "ssh-keygen") == 0) {
22 return dropbearkey_main(argc, argv);
23 }
24 #endif
25 @@ -88,7 +89,7 @@ int main(int argc, char ** argv) {
26 "'dbclient' or 'ssh' - the Dropbear client\n"
27 #endif
28 #ifdef DBMULTI_dropbearkey
29 - "'dropbearkey' - the key generator\n"
30 + "'dropbearkey' or 'ssh-keygen' - the key generator\n"
31 #endif
32 #ifdef DBMULTI_dropbearconvert
33 "'dropbearconvert' - the key converter\n"