diff options
author | Kiyoshi Aman <kiyoshi.aman+apkfission@gmail.com> | 2018-07-04 07:01:10 -0500 |
---|---|---|
committer | Kiyoshi Aman <kiyoshi.aman+apkfission@gmail.com> | 2018-07-04 10:28:32 -0500 |
commit | 4d6fdd8bd190dc41a7e179c929ac6b693b0eebd7 (patch) | |
tree | 6e47455832c8b633c7714d42fa741c376b1ba0bd /system/busybox/0015-ash-introduce-a-config-option-to-search-current-dire.patch | |
parent | e383b8782bbb48262f8123f2d7cb296c38fb057f (diff) | |
download | packages-4d6fdd8bd190dc41a7e179c929ac6b693b0eebd7.tar.gz packages-4d6fdd8bd190dc41a7e179c929ac6b693b0eebd7.tar.bz2 packages-4d6fdd8bd190dc41a7e179c929ac6b693b0eebd7.tar.xz packages-4d6fdd8bd190dc41a7e179c929ac6b693b0eebd7.zip |
system/busybox: upgrade to 1.28.4
Diffstat (limited to 'system/busybox/0015-ash-introduce-a-config-option-to-search-current-dire.patch')
-rw-r--r-- | system/busybox/0015-ash-introduce-a-config-option-to-search-current-dire.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/system/busybox/0015-ash-introduce-a-config-option-to-search-current-dire.patch b/system/busybox/0015-ash-introduce-a-config-option-to-search-current-dire.patch new file mode 100644 index 000000000..9fc6f7e68 --- /dev/null +++ b/system/busybox/0015-ash-introduce-a-config-option-to-search-current-dire.patch @@ -0,0 +1,47 @@ +From 13c7e0cc7767b84e183ddbc3400171874478bf06 Mon Sep 17 00:00:00 2001 +From: Denys Vlasenko <vda.linux@googlemail.com> +Date: Fri, 26 Jan 2018 15:15:43 +0100 +Subject: [PATCH 15/16] ash: introduce a config option to search current + directory for sourced files + +--- + shell/ash.c | 13 ++++++++++++- + 1 file changed, 12 insertions(+), 1 deletion(-) + +diff --git a/shell/ash.c b/shell/ash.c +index d04096a9b..5dd184360 100644 +--- a/shell/ash.c ++++ b/shell/ash.c +@@ -132,6 +132,13 @@ + //config: you to run the specified command or builtin, + //config: even when there is a function with the same name. + //config: ++//config:config ASH_BASH_SOURCE_CURDIR ++//config: bool "'source' and '.' builtins search current directory after $PATH" ++//config: default n # do not encourage non-standard behavior ++//config: depends ASH_BASH_COMPAT ++//config: help ++//config: This is not compliant with standards. Avoid if possible. ++//config: + //config:config ASH_COMMAND_NOT_FOUND_HOOK + //config: bool "command_not_found_handle hook support" + //config: default y +@@ -12919,10 +12926,14 @@ find_dot_file(char *name) + if (fullname != name) + stunalloc(fullname); + } ++ /* not found in PATH */ + +- /* not found in the PATH */ ++#if ENABLE_ASH_BASH_SOURCE_CURDIR ++ return name; ++#else + ash_msg_and_raise_error("%s: not found", name); + /* NOTREACHED */ ++#endif + } + + static int FAST_FUNC +-- +2.16.2 + |