Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix refresh of OSToken by passing isToken=true to Generation::create()
The "true" in the call to Generation::create() in OSToken::OSToken() is used as the umask when it's supposed to be the isToken value (opendnssec#566). Remove the default value from isToken because it's dangerous and there are only two callers. Explicitly pass "true" and "false" for isToken. Failing to consider this a token generation file means that the value is never refreshed for read-only operations. All objects are reloaded from disk every time one of them is refreshed. List operations take a long time because all of the objects are re-read for each object. Fixes opendnssec#680.
- Loading branch information