mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 10:46:28 +08:00
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:
committed by
Alan Carvalho de Assis
parent
0148e1d501
commit
a0f2f6c362
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user