Commit 417253af authored by antirez's avatar antirez
Browse files

CONFIG REWRITE: Use sane perms when creating redis.conf from scratch.

parent 8feb3d26
...@@ -1458,7 +1458,7 @@ void rewriteConfigRemoveOrphaned(struct rewriteConfigState *state) { ...@@ -1458,7 +1458,7 @@ void rewriteConfigRemoveOrphaned(struct rewriteConfigState *state) {
* set accordingly. */ * set accordingly. */
int rewriteConfigOverwriteFile(char *configfile, sds content) { int rewriteConfigOverwriteFile(char *configfile, sds content) {
int retval = 0; int retval = 0;
int fd = open(configfile,O_RDWR|O_CREAT); int fd = open(configfile,O_RDWR|O_CREAT,0644);
int content_size = sdslen(content), padding = 0; int content_size = sdslen(content), padding = 0;
struct stat sb; struct stat sb;
sds content_padded; sds content_padded;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment