fs: Move umask to task_info_s

and implement the related semantic correctly

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I0587341e2c505e41b5e24e55dba039ed200d65f2
This commit is contained in:
Xiang Xiao
2021-07-11 17:44:25 +08:00
committed by Alan Carvalho de Assis
parent 0148e1d501
commit a0f2f6c362
7 changed files with 36 additions and 16 deletions
+3
View File
@@ -24,6 +24,7 @@
#include <nuttx/config.h>
#include <sys/stat.h>
#include <stdbool.h>
#include <stdarg.h>
#include <stdio.h>
@@ -188,6 +189,8 @@ static int file_mq_vopen(FAR struct file *mq, FAR const char *mq_name,
attr = va_arg(ap, FAR struct mq_attr *);
}
mode &= ~getumask();
/* Skip over any leading '/'. All message queue paths are relative to
* CONFIG_FS_MQUEUE_MPATH.
*/