Skip to content

Commit

Permalink
Merge pull request redis#154 from florean/2.4
Browse files Browse the repository at this point in the history
2.4
  • Loading branch information
antirez committed Oct 26, 2011
2 parents 15c9497 + 1126d5a commit 00af23b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 00af23b

Please sign in to comment.