mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-28 04:10:44 -04:00
audit/file: Create file if it does not exist. Fixes #148
This commit is contained in:
parent
2c8ecd53bc
commit
70ae9323e2
1 changed files with 1 additions and 1 deletions
|
|
@ -132,7 +132,7 @@ func (b *Backend) open() error {
|
|||
}
|
||||
|
||||
var err error
|
||||
b.f, err = os.OpenFile(b.Path, os.O_APPEND|os.O_WRONLY, 0600)
|
||||
b.f, err = os.OpenFile(b.Path, os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0600)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue