summaryrefslogtreecommitdiff
path: root/data/dropbear_/default_path.diff
diff options
context:
space:
mode:
Diffstat (limited to 'data/dropbear_/default_path.diff')
-rw-r--r--data/dropbear_/default_path.diff32
1 files changed, 32 insertions, 0 deletions
diff --git a/data/dropbear_/default_path.diff b/data/dropbear_/default_path.diff
new file mode 100644
index 000000000..a92f60f1b
--- /dev/null
+++ b/data/dropbear_/default_path.diff
@@ -0,0 +1,32 @@
+diff -ur dropbear-2019.78/Makefile.in dropbear-2019.78+iOS/Makefile.in
+--- dropbear-2019.78/Makefile.in 2019-03-27 04:15:23.000000000 -1000
++++ dropbear-2019.78+iOS/Makefile.in 2019-11-10 07:42:23.000000000 -1000
+@@ -9,7 +9,7 @@
+ # dbclient functionality, and includes the progress-bar functionality in scp.
+
+ ifndef PROGRAMS
+- PROGRAMS=dropbear dbclient dropbearkey dropbearconvert
++ PROGRAMS=dropbear dbclient dropbearkey dropbearconvert scp
+ endif
+
+ STATIC_LTC=libtomcrypt/libtomcrypt.a
+diff -ur dropbear-2019.78/default_options.h dropbear-2019.78+iOS/default_options.h
+--- dropbear-2019.78/default_options.h 2019-03-27 04:15:23.000000000 -1000
++++ dropbear-2019.78+iOS/default_options.h 2019-11-09 23:13:07.000000000 -1000
+@@ -259,7 +259,7 @@
+
+ /* This is used by the scp binary when used as a client binary. If you're
+ * not using the Dropbear client, you'll need to change it */
+-#define DROPBEAR_PATH_SSH_PROGRAM "/usr/bin/dbclient"
++#define DROPBEAR_PATH_SSH_PROGRAM "/binpack/usr/bin/dbclient"
+
+ /* Whether to log commands executed by a client. This only logs the
+ * (single) command sent to the server, not what a user did in a
+@@ -295,6 +295,6 @@
+ #define DEFAULT_IDLE_TIMEOUT 0
+
+ /* The default path. This will often get replaced by the shell */
+-#define DEFAULT_PATH "/usr/bin:/bin"
++#define DEFAULT_PATH "/binpack/usr/bin:/binpack/usr/sbin:/binpack/bin:/binpack/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
+
+ #endif /* DROPBEAR_DEFAULT_OPTIONS_H_ */