From f5b169ee8e3715fa55b2ddaefeae0d4341df4072 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 13 Feb 2017 16:57:41 -0600 Subject: [PATCH] apps/examples/stat: Add missing decoding of S_IXOTH bit. --- examples/stat/stat_main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/stat/stat_main.c b/examples/stat/stat_main.c index 831029684..aaf3b26e9 100644 --- a/examples/stat/stat_main.c +++ b/examples/stat/stat_main.c @@ -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);