mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-13 18:12:03 +08:00
updated to libopts 5.18.2
This commit is contained in:
@@ -50,7 +50,11 @@ open_tmp_usage(char ** buf)
|
||||
}
|
||||
|
||||
{
|
||||
static mode_t const cmask = S_IRWXO | S_IRWXG;
|
||||
mode_t svmsk = umask(cmask);
|
||||
int fd = mkstemp(bf);
|
||||
(void)umask(svmsk);
|
||||
|
||||
if (fd < 0) {
|
||||
AGFREE(bf);
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user