Skip to content

Commit

Permalink
Conditionally set mode when not zero... for #3639
Browse files Browse the repository at this point in the history
  • Loading branch information
brianshumate committed Dec 4, 2017
1 parent ee89aa1 commit ba8d645
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion builtin/audit/file/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ func Factory(conf *audit.BackendConfig) (audit.Backend, error) {
if err != nil {
return nil, err
}
mode = os.FileMode(m)
if m != 0 {
mode = os.FileMode(m)
}
}

b := &Backend{
Expand Down

0 comments on commit ba8d645

Please sign in to comment.