Skip to content
Snippets Groups Projects
Unverified Commit dfce3c89 authored by Jake Drahos's avatar Jake Drahos
Browse files

Fixed umask to 111 instead of 000

parent 5ef57a52
No related branches found
No related tags found
No related merge requests found
...@@ -140,7 +140,7 @@ int main(int argc, char **argv) ...@@ -140,7 +140,7 @@ int main(int argc, char **argv)
unlink(backend_socket_path); unlink(backend_socket_path);
/* Create socket */ /* Create socket */
mode_t old_umask = umask(0000); mode_t old_umask = umask(0111);
backendSocket = socket(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK, 0); backendSocket = socket(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK, 0);
if (backendSocket < 0) { if (backendSocket < 0) {
err(-1, "socket"); err(-1, "socket");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment