From cf79d49875509a4b7554fd0d46dc0c060bc72fdc Mon Sep 17 00:00:00 2001 From: Ben Swartzlander Date: Mon, 2 Oct 2017 13:37:24 -0400 Subject: [PATCH] Modify the default path for dropbear Change-Id: I0b3d0d06f28a97d87a923715161dcf73caa5dd44 --- patches/dropbear-default-path.patch | 21 +++++++++++++++++++++ patches/series | 1 + 2 files changed, 22 insertions(+) create mode 100644 patches/dropbear-default-path.patch diff --git a/patches/dropbear-default-path.patch b/patches/dropbear-default-path.patch new file mode 100644 index 0000000..c458eb8 --- /dev/null +++ b/patches/dropbear-default-path.patch @@ -0,0 +1,21 @@ +Modify the default path of dropbear to include /sbin and /usr/sbin. + +Index: buildroot/package/dropbear/0001-defaultpath.patch +=================================================================== +--- /dev/null 1969-12-31 19:00:00.000000000 -0500 ++++ buildroot/package/dropbear/0001-defaultpath.patch 2017-10-02 13:32:32.197369170 -0400 +@@ -0,0 +1,13 @@ ++diff -Naur a/options.h b/options.h ++--- a/options.h 2017-10-02 10:40:56.591817649 -0400 +++++ b/options.h 2017-10-02 13:31:45.493262641 -0400 ++@@ -342,7 +342,7 @@ ++ #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 "/usr/bin:/bin:/usr/sbin:/sbin" ++ ++ /* Some other defines (that mostly should be left alone) are defined ++ * in sysoptions.h */ ++ + diff --git a/patches/series b/patches/series index 3a69e88..dda50d2 100644 --- a/patches/series +++ b/patches/series @@ -1,3 +1,4 @@ nfs-utils-enable-nfsv4.patch samba4-fixes.patch bootloader-alignment-fix.patch +dropbear-default-path.patch