From 5d9191f2fa27298f5b23b088edd172847070da53 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Tue, 9 Jun 2020 21:51:35 -0600 Subject: [PATCH] send our errors to _, fix typo --- main.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/main.go b/main.go index 65b2e17..a551688 100644 --- a/main.go +++ b/main.go @@ -52,13 +52,13 @@ func init() { flag.BoolVar(&test, "test", false, "Enable testing mode (uses staging LetsEncrypt).") flag.Parse() - // These are OpenBSD specific protections used to prevent un-necesary file access. - protect.Unveil(staticDir, "r") - protect.Unveil(passPath, "r") - protect.Unveil(davDir, "rwc") - protect.Unveil(cacheDir, "rwc") - protect.Unveil("/etc/ssl/cert.pem", "r") - protect.Unveil("/etc/resolv.conf", "r") + // These are OpenBSD specific protections used to prevent unnecessary file access. + _ = protect.Unveil(staticDir, "r") + _ = protect.Unveil(passPath, "r") + _ = protect.Unveil(davDir, "rwc") + _ = protect.Unveil(cacheDir, "rwc") + _ = protect.Unveil("/etc/ssl/cert.pem", "r") + _ = protect.Unveil("/etc/resolv.conf", "r") err = protect.UnveilBlock() if err != nil { log.Fatal(err)