mirror of
https://github.com/fluencelabs/redis
synced 2025-06-25 06:51:32 +00:00
CONFIG REWRITE: Use sane perms when creating redis.conf from scratch.
This commit is contained in:
@ -1481,7 +1481,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;
|
||||||
|
Reference in New Issue
Block a user