diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2023-03-31 21:35:50 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2023-03-31 21:35:50 +0200 |
commit | 262a84547798cf795d9748329f2ad251117801cc (patch) | |
tree | 0089681f836926bf9a673040090b1d26f6132c9c | |
parent | 098cd7ece44bf7ab7ae38dc00dd574af79a9bad8 (diff) | |
download | busybox-w32-262a84547798cf795d9748329f2ad251117801cc.tar.gz busybox-w32-262a84547798cf795d9748329f2ad251117801cc.tar.bz2 busybox-w32-262a84547798cf795d9748329f2ad251117801cc.zip |
ash: exec: Stricter pathopt parsing - lost chunk
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | shell/ash.c | 2 |
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) | |||
2959 | if (!*dest) | 2959 | if (!*dest) |
2960 | dest = "."; | 2960 | dest = "."; |
2961 | path = bltinlookup("CDPATH"); | 2961 | path = bltinlookup("CDPATH"); |
2962 | while (p = path, (len = padvance(&path, dest)) >= 0) { | 2962 | while (p = path, (len = padvance_magic(&path, dest, 0)) >= 0) { |
2963 | c = *p; | 2963 | c = *p; |
2964 | p = stalloc(len); | 2964 | p = stalloc(len); |
2965 | 2965 | ||