What do I see?

When I send an ACL SAVE command the ACL file is written as expected, but during the process gains the world readable attribute.

What do I expect to see?

File permissions should be preserved during the save.

Environment

Ubuntu Bionic Latest Redis, built from source

Comment From: itamarhaber

Hello @theDogOfPavlov

I can verify this issue exists due to the new file being created, rather than the old file being rewritten.

@antirez it looks like that rewriteConfigOverwriteFile can be reused for this purpose, but in that case maybe it should be renamed and moved to, idk, util?