mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
apps/examples/stat: Add missing decoding of S_IXOTH bit.
This commit is contained in:
parent
76269d7bad
commit
f5b169ee8e
1 changed files with 5 additions and 0 deletions
|
|
@ -172,6 +172,11 @@ static void dump_stat(FAR struct stat *buf)
|
|||
details[8]='w';
|
||||
}
|
||||
|
||||
if ((buf->st_mode & S_IXOTH) != 0)
|
||||
{
|
||||
details[9]='x';
|
||||
}
|
||||
|
||||
printf("stat buffer:\n");
|
||||
printf(" st_mode: %04x %s\n", buf->st_mode, details);
|
||||
printf(" st_size: %llu\n", (unsigned long long)buf->st_size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue