Kernel: Shell ls and stat now properly show symlinks

This commit is contained in:
Bananymous 2023-06-02 18:22:56 +03:00
parent 3c3c7826ef
commit 9bd4d68f9c
1 changed files with 4 additions and 2 deletions

View File

@ -538,6 +538,7 @@ argument_done:
const char* color =
mode.ifdir() ? "34" :
mode.ifchr() || mode.ifblk() ? "33" :
mode.iflnk() ? "36" :
(mode.mode & Inode::Mode::IXUSR) ? "32" :
"";
@ -582,6 +583,7 @@ argument_done:
mode.ifdir() ? "directory" :
mode.ifchr() ? "character device" :
mode.ifblk() ? "block device" :
mode.iflnk() ? "symbolic link" :
"other";
TTY_PRINTLN(" File: {}", arguments[1]);