Openwrt/package/network/services/dropbear/patches/500-set-default-path.patch
Jo-Philipp Wich b78aae793e dropbear: honor CONFIG_TARGET_INIT_PATH
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 48679
2016-02-08 14:28:57 +00:00

13 lines
357 B
Diff

--- a/options.h
+++ b/options.h
@@ -347,7 +347,9 @@ be overridden at runtime with -I. 0 disa
#define DEFAULT_IDLE_TIMEOUT 0
/* The default path. This will often get replaced by the shell */
+#ifndef DEFAULT_PATH
#define DEFAULT_PATH "/usr/bin:/bin"
+#endif
/* Some other defines (that mostly should be left alone) are defined
* in sysoptions.h */