mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 08:38:38 +08:00
mkstemp: permission 0666 to 0600
https://man7.org/linux/man-pages/man3/mkstemp.3.html remove the read/write permission of other users for temp file Signed-off-by: buxiasen <buxiasen@xiaomi.com>
This commit is contained in:
parent
5cdd0230a8
commit
b08d219849
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ int mkstemp(FAR char *path_template)
|
|||
|
||||
if (path)
|
||||
{
|
||||
ret = open(path, O_RDWR | O_CREAT | O_EXCL, 0666);
|
||||
ret = open(path, O_RDWR | O_CREAT | O_EXCL, 0600);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue