mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 14:14:45 +03: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
Notes:
sideshowbarker
2024-07-16 23:03:06 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/9b3f9c46b9 Pull-request: https://github.com/SerenityOS/serenity/pull/22868
@ -377,7 +377,7 @@ static bool print_filesystem_object(ByteString const& path, ByteString const& na
|
|||||||
st.st_mode & S_IWOTH ? 'w' : '-');
|
st.st_mode & S_IWOTH ? 'w' : '-');
|
||||||
|
|
||||||
if (st.st_mode & S_ISVTX)
|
if (st.st_mode & S_ISVTX)
|
||||||
printf("t");
|
printf("%c", st.st_mode & S_IXOTH ? 't' : 'T');
|
||||||
else
|
else
|
||||||
printf("%c", st.st_mode & S_IXOTH ? 'x' : '-');
|
printf("%c", st.st_mode & S_IXOTH ? 'x' : '-');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user