[Bug 15476] New: cd allows odd .... directory
bugzilla at busybox.net
bugzilla at busybox.net
Wed Mar 22 15:39:17 UTC 2023
https://bugs.busybox.net/show_bug.cgi?id=15476
Bug ID: 15476
Summary: cd allows odd .... directory
Product: Busybox
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
Assignee: unassigned at busybox.net
Reporter: mstam at ripe.net
CC: busybox-cvs at busybox.net
Target Milestone: ---
Created attachment 9556
--> https://bugs.busybox.net/attachment.cgi?id=9556&action=edit
busybox .config
Hi guys,
I mistyped a directory name by working on an OpenWRT box running an older
version of busybox executing 'cd .../..' instead of 'cd ../..'. The command
returns exit code 0, but doesn't seem to do anything.
I did some further investigation, executing 'cd
................................/..' and still this is allowed. 'cd ../...'
returns the expected "can't cd to" error, however 'cd ../........./..' again
executes (and goes only one directory up).
Any thoughts?
Built on a PC, but also observed on 2 different AARCH64 systems, each one
running older versions of OpenWRT (2018 and 2020 from memory). This suggests
this has been around for a while.
Config is mostly default, I ran:
git clone https://git.busybox.net/busybox.git
cd busybox
git checkout master
make defconfig
make menuconfig <<<<< disable seedrng, it cannot find sys/random.h
make
busybox ash
cd ....../.. <<<<<<< or any of the other mentioned commands.
Hope it helps.
Cheers,
Michel
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list