Fixes aof file permission with arbitrary user
Due to misconfigured file permissions for the AOF file, the command BGREWRITEAOF only works once and successive BGREWRITEAOF fails with an error message on the server console. This commit fixes it and uses the correct & appropriate operation mode flags for underlying system calls.
Fixes https://github.com/DiceDB/dice/issues/90
@rohanverma94 This change is conflicting atm. The code base has moved forward lot. Please rebase and re-submit if you are still keen to fix this. We will be cleaning up old PR's if they are inactive. Thanks
I'm occupied with some stuff. I would've resumed this work otherwise. Meanwhile feel free to close this or may be raise new PR.