/usr inappropriately soft-links to /: Results in infinite recursion with, "ls -lR /"
Created by: gbutler69
- [ X] I agree that I have searched opened and closed issues to prevent duplicates.
Description
If you go to the root of the file-system in Redox and enter the command, ls -lR
(or simply type, ls -lR /
anywhere) it goes into infinite recursion showing files/folders in:
/usr/bin /usr/usr/bin /usr/usr/usr/bin ... /usr/usr/usr/.........../usr/bin etc.
Environment info
Inside Redox OS running under QEMU following the proscribed procedures.
- Operating system:
Ubuntu 17.04 (Linux)
-
uname -a
:
Linux butler-Leopard-Extreme 4.10.0-38-generic #42-Ubuntu SMP Tue Oct 10 13:24:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
-
rustc -V
:
rustc 1.23.0-nightly (79cfce3d3 2017-11-12)
-
git rev-parse HEAD
:
5f7233417b7934604ac5e355989dd4613c1b64c5
Steps to reproduce
- Build Redox
- start it with, "make qemu"
- Login using "root/password"
- enter the following command, "ls -lR /"
- watch as it infinitely recurses into /usr, /usr/usr, /usr/usr/usr, ...
Behavior
-
Expected behavior:
- lists all files/folders on the file-system without infinitely recursing
-
Actual behavior:
- infinite recursion into /usr, /usr/usr/, ...
-
Proposed solution:
Change /usr to be an actual folder and /usr/bin to be a soft-links to /bin as follows:
rm /usr
mkdir /usr
chown root:root /usr
chmod 755 /usr
ln -s /bin /usr/bin
EDIT: Make the sub-folders of /usr that are soft-links correctly reflect the desired/current folders at the / level in RedoxOS