mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-25 18:58:56 +00:00
ls: Display SUID files with red background color
This commit is contained in:
parent
cdeae8a6f3
commit
c9507e8cbe
Notes:
sideshowbarker
2024-07-19 10:20:40 +09:00
Author: https://github.com/awesomekling
Commit: c9507e8cbe
1 changed files with 2 additions and 0 deletions
|
@ -107,6 +107,8 @@ int print_name(const struct stat& st, const String& name, const char* path_for_l
|
|||
|
||||
if (st.st_mode & S_ISVTX)
|
||||
begin_color = "\033[42;30;1m";
|
||||
else if (st.st_mode & S_ISUID)
|
||||
begin_color = "\033[41;1m";
|
||||
else if (S_ISLNK(st.st_mode))
|
||||
begin_color = "\033[36;1m";
|
||||
else if (S_ISDIR(st.st_mode))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue