summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2023-03-31 21:35:50 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2023-03-31 21:35:50 +0200
commit262a84547798cf795d9748329f2ad251117801cc (patch)
tree0089681f836926bf9a673040090b1d26f6132c9c
parent098cd7ece44bf7ab7ae38dc00dd574af79a9bad8 (diff)
downloadbusybox-262a84547798cf795d9748329f2ad251117801cc.tar.gz
ash: exec: Stricter pathopt parsing - lost chunk
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--shell/ash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 40b921be1..45e552217 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -2959,7 +2959,7 @@ cdcmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
if (!*dest)
dest = ".";
path = bltinlookup("CDPATH");
- while (p = path, (len = padvance(&path, dest)) >= 0) {
+ while (p = path, (len = padvance_magic(&path, dest, 0)) >= 0) {
c = *p;
p = stalloc(len);