libos: Show the sticky bit on symbolic modes

This commit is contained in:
apio 2023-06-03 11:35:13 +02:00
parent 0540879959
commit 89d7866abb
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -27,8 +27,7 @@ namespace os
out[6] = (mode & S_ISGID) ? ((mode & S_IXGRP) ? 's' : 'S') : ((mode & S_IXGRP) ? 'x' : '-'); out[6] = (mode & S_ISGID) ? ((mode & S_IXGRP) ? 's' : 'S') : ((mode & S_IXGRP) ? 'x' : '-');
out[7] = (mode & S_IROTH) ? 'r' : '-'; out[7] = (mode & S_IROTH) ? 'r' : '-';
out[8] = (mode & S_IWOTH) ? 'w' : '-'; out[8] = (mode & S_IWOTH) ? 'w' : '-';
// FIXME: Support the sticky bit. out[9] = (mode & S_ISVTX) ? ((mode & S_IXOTH) ? 't' : 'T') : ((mode & S_IXOTH) ? 'x' : '-');
out[9] = (mode & S_IXOTH) ? 'x' : '-';
out[10] = '\0'; out[10] = '\0';
} }
} }