ash: exec: Stricter pathopt parsing - lost chunk

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2023-03-31 21:35:50 +02:00
parent 098cd7ece4
commit 262a845477

View File

@ -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);