libos: Show the sticky bit on symbolic modes
This commit is contained in:
parent
0540879959
commit
89d7866abb
@ -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';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user