Added chmod 0777 for unix sockets
Added chmod 0777 for unix sockets
This commit is contained in:
@ -34,6 +34,7 @@
|
|||||||
* 28/02/2014 Massimiliano Pinto Added: client IPv4 in dcb->ipv4 and inet_ntop for string representation
|
* 28/02/2014 Massimiliano Pinto Added: client IPv4 in dcb->ipv4 and inet_ntop for string representation
|
||||||
* 11/03/2014 Massimiliano Pinto Added: Unix socket support
|
* 11/03/2014 Massimiliano Pinto Added: Unix socket support
|
||||||
* 07/05/2014 Massimiliano Pinto Added: specific version string in server handshake
|
* 07/05/2014 Massimiliano Pinto Added: specific version string in server handshake
|
||||||
|
* 09/09/2014 Massimiliano Pinto Added: 777 permission for socket path
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#include <skygw_utils.h>
|
#include <skygw_utils.h>
|
||||||
@ -985,6 +986,16 @@ int gw_MySQLListener(
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* set permission for all users */
|
||||||
|
if (chmod(config_bind, 0777) < 0) {
|
||||||
|
fprintf(stderr,
|
||||||
|
"\n* chmod failed for %s due error %i, %s.\n\n",
|
||||||
|
config_bind,
|
||||||
|
errno,
|
||||||
|
strerror(errno));
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AF_INET:
|
case AF_INET:
|
||||||
|
|||||||
Reference in New Issue
Block a user