Moved call to fchmod() on socket from OneServerSocket::Open() to socket_bind_listen()
This commit is contained in:
@@ -39,7 +39,6 @@
|
||||
#include <string>
|
||||
#include <algorithm>
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <assert.h>
|
||||
@@ -184,13 +183,6 @@ OneServerSocket::Open()
|
||||
SOCK_STREAM, 0,
|
||||
address, 5);
|
||||
|
||||
#ifdef HAVE_UN
|
||||
/* allow everybody to connect */
|
||||
|
||||
if (!path.IsNull())
|
||||
fchmod(_fd.Get(), 0666);
|
||||
#endif
|
||||
|
||||
/* register in the EventLoop */
|
||||
|
||||
SetFD(_fd.Release());
|
||||
|
Reference in New Issue
Block a user