In commit “rpc: add default 600 permissions for cookie file” (35df85346438258e1bb5f736e9c4d48cf59e6547)
This commit message is confusing because it sounds like it changing the permissions of the cookie file, but the diff only shows it adding a constant declaration and not changing any code?
It seems like it would be better if this commit were combined with the third commit “init: add option for rpccookie permissions” (ae7ec049e5c8d2361c7f47cad3e8c13f912f1c2a) where the new constant is actually used. It would make both commits easier to understand, IMO
EDIT: Alternately this constant could be dropped if GenerateAuthCookie
took a std::optional<fs::perms>
parameter instead of fs::perms
, and only optionally set permissions instead of always setting them, as suggested in a later comment.