[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox-cvs
Subject: [Bug 15476] New: cd allows odd .... directory
From: bugzilla () busybox ! net
Date: 2023-03-22 15:39:17
Message-ID: bug-15476-161 () https ! bugs ! busybox ! net/
[Download RAW message or body]
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@busybox.net
Reporter: mstam@ripe.net
CC: busybox-cvs@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.
_______________________________________________
busybox-cvs mailing list
busybox-cvs@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic