forked from Bananymous/banan-os
Kernel: Shell ls and stat now properly show symlinks
This commit is contained in:
parent
3c3c7826ef
commit
9bd4d68f9c
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue