Fix minor bugs on OpenBSD-only code, after discovering easy of cross-compilation in Go.
This commit is contained in:
parent
40203a8856
commit
8d1a04cb27
1 changed files with 3 additions and 1 deletions
|
@ -21,7 +21,7 @@ func enableSecurityRestrictions(config Config, ui userInfo) error {
|
|||
|
||||
// Unveil the configured document base as readable.
|
||||
log.Println("Unveiling \"" + config.DocBase + "\" as readable.")
|
||||
err := unix.Unveil(config.DocBase, "r")
|
||||
err = unix.Unveil(config.DocBase, "r")
|
||||
if err != nil {
|
||||
log.Println("Could not unveil DocBase: " + err.Error())
|
||||
return err
|
||||
|
@ -72,4 +72,6 @@ func enableSecurityRestrictions(config Config, ui userInfo) error {
|
|||
log.Println("Could not pledge: " + err.Error())
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue