Permalink
Browse files

Merge pull request #154 from florean/2.4

2.4
  • Loading branch information...
2 parents 15c9497 + 1126d5a commit 00af23bcbf6e5877ae5535d65fde2ab910a676e5 @antirez committed Oct 26, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/config.c
View
@@ -75,6 +75,7 @@ void loadServerConfig(char *filename) {
} else if (!strcasecmp(argv[0],"unixsocket") && argc == 2) {
server.unixsocket = zstrdup(argv[1]);
} else if (!strcasecmp(argv[0],"unixsocketperm") && argc == 2) {
+ errno = 0;
server.unixsocketperm = (mode_t)strtol(argv[1], NULL, 8);
if (errno || server.unixsocketperm > 0777) {
err = "Invalid socket file permissions"; goto loaderr;

0 comments on commit 00af23b

Please sign in to comment.