Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
00af23bc
Commit
00af23bc
authored
Oct 26, 2011
by
Salvatore Sanfilippo
Browse files
Merge pull request #154 from florean/2.4
2.4
parents
15c94972
1126d5aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/config.c
View file @
00af23bc
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment