mirror of
https://github.com/apache/nuttx.git
synced 2026-05-19 03:03:37 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user