mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:07:36 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue