mirror of
https://git.busybox.net/busybox.git
synced 2024-11-23 21:53:25 +08:00
ash: exec: Stricter pathopt parsing - lost chunk
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
098cd7ece4
commit
262a845477
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user