1
1
Fork 0
mirror of https://tildegit.org/solderpunk/molly-brown synced 2024-04-28 06:45:03 +02:00

Fix minor bugs on OpenBSD-only code, after discovering easy of cross-compilation in Go.

This commit is contained in:
Solderpunk 2023-02-22 21:16:11 +01:00
parent 40203a8856
commit 8d1a04cb27

View File

@ -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
}