From c9507e8cbe0c68546cebc5ff3985a7536e537ffb Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 5 Jan 2020 12:49:25 +0100 Subject: [PATCH] ls: Display SUID files with red background color --- Userland/ls.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/ls.cpp b/Userland/ls.cpp index bcf744c7517..312ea1a7dcf 100644 --- a/Userland/ls.cpp +++ b/Userland/ls.cpp @@ -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))