[Bug 15476] cd allows odd .... directory
bugzilla at busybox.net
bugzilla at busybox.net
Fri Mar 31 14:47:10 UTC 2023
https://bugs.busybox.net/show_bug.cgi?id=15476
--- Comment #1 from Denys Vlasenko <vda.linux at googlemail.com> ---
cd DIR
cdcmd() -> docd() -> updatepwd(), and updatepwd has the code which "normalizes"
the DIR: prepends current dir if DIR is not absolute, then eliminates
"SUBDIR/.." sections.
The bug is, it does not care whether SUBDIR exists:
cd BOGUSDIR/../existing_dir
works.
The same exact code is in dash. Needs to be fixed there first.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list