klibc-bot for Herbert Xu
2020-Mar-28 21:48 UTC
[klibc] [klibc:update-dash] dash: [BUILTIN] Set command -p path to /usr/sbin:/usr/bin:/sbin:/bin
Commit-ID: 4ef2c091593e96e392384ca8142c64d5ba30b9c7 Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=4ef2c091593e96e392384ca8142c64d5ba30b9c7 Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Fri, 26 Sep 2014 17:18:35 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:54 +0000 [klibc] dash: [BUILTIN] Set command -p path to /usr/sbin:/usr/bin:/sbin:/bin [ dash commit 842050da1c14d7dbe365cd750032fcd8eaaa1db2 ] Exclude /usr/local from command -p PATH. Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au> Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/dash/var.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/dash/var.h b/usr/dash/var.h index 1a06a3cb..11ce9b7d 100644 --- a/usr/dash/var.h +++ b/usr/dash/var.h @@ -107,7 +107,7 @@ extern const char defifsvar[]; extern const char defifs[]; #endif extern const char defpathvar[]; -#define defpath (defpathvar + 5) +#define defpath (defpathvar + 36) extern int lineno; extern char linenovar[];
Apparently Analagous Threads
- [klibc:update-dash] [BUILTIN] Set command -p path to /usr/sbin:/usr/bin:/sbin:/bin
- [klibc:update-dash] dash: var: Set IFS to fixed value at start time
- [klibc:update-dash] dash: [VAR] Use setvareq to set OPTIND initially
- [klibc:update-dash] [VAR] Use setvareq to set OPTIND initially
- [klibc:update-dash] dash: [BUILTIN] command: allow combining -p with -v