mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Don't use the umask to chmod local domain server sockets, use
the mask
This commit is contained in:
parent
318b02fdb9
commit
3356db52df
1 changed files with 1 additions and 1 deletions
|
|
@ -186,7 +186,7 @@ server_LocalOpen(struct bundle *bundle, const char *name, mode_t mask)
|
|||
int s;
|
||||
|
||||
if (server.rm && !strcmp(server.rm, name)) {
|
||||
if (chmod(server.rm, mask))
|
||||
if (chmod(server.rm, 0777 & ~mask))
|
||||
log_Printf(LogERROR, "Local: chmod: %s\n", strerror(errno));
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue