summaryrefslogtreecommitdiff
path: root/package/dropbear/patches/patch-svr-main_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2020-11-04 13:05:24 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2020-11-10 00:32:03 +0100
commitdbb8e1ec1112621af47b5f1d4015961a73fbe490 (patch)
tree337c300c1bcde40c8ff50be5d56d681a88afbefc /package/dropbear/patches/patch-svr-main_c
parentdb10a29a46daffeee555c622ca0d97982c309cb9 (diff)
dropbear: update to latest
Diffstat (limited to 'package/dropbear/patches/patch-svr-main_c')
-rw-r--r--package/dropbear/patches/patch-svr-main_c15
1 files changed, 15 insertions, 0 deletions
diff --git a/package/dropbear/patches/patch-svr-main_c b/package/dropbear/patches/patch-svr-main_c
new file mode 100644
index 000000000..b2d4007b8
--- /dev/null
+++ b/package/dropbear/patches/patch-svr-main_c
@@ -0,0 +1,15 @@
+--- dropbear-2020.81.orig/svr-main.c 2020-10-29 14:35:50.000000000 +0100
++++ dropbear-2020.81/svr-main.c 2020-11-04 05:04:33.736369225 +0100
+@@ -278,8 +278,12 @@ static void main_noinetd() {
+ #if DEBUG_NOFORK
+ fork_ret = 0;
+ #else
++#if DROPBEAR_VFORK
++ fork_ret = vfork();
++#else
+ fork_ret = fork();
+ #endif
++#endif
+ if (fork_ret < 0) {
+ dropbear_log(LOG_WARNING, "Error forking: %s", strerror(errno));
+ goto out;