mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-22 02:26:11 +00:00
ls: Show T in long mode if sticky bit is set for non-executable files
This commit is contained in:
parent
0266a32580
commit
9b3f9c46b9
|
@ -377,7 +377,7 @@ static bool print_filesystem_object(ByteString const& path, ByteString const& na
|
|||
st.st_mode & S_IWOTH ? 'w' : '-');
|
||||
|
||||
if (st.st_mode & S_ISVTX)
|
||||
printf("t");
|
||||
printf("%c", st.st_mode & S_IXOTH ? 't' : 'T');
|
||||
else
|
||||
printf("%c", st.st_mode & S_IXOTH ? 'x' : '-');
|
||||
|
||||
|
|
Loading…
Reference in a new issue