summary refs log tree commit diff stats
path: root/cmd/cetus/main_openbsd.go
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-04-04 22:03:25 +0530
committerAndinus <andinus@nand.sh>2020-04-04 22:03:25 +0530
commit68b5fcce0d108cf37273f1a505f8f8b21aeafc4c (patch)
tree90d3391dfba5afdf7e34467e2170c97276d2ee01 /cmd/cetus/main_openbsd.go
parent206a776f64c9163ab597c25a61040c08c012dfd0 (diff)
downloadcetus-68b5fcce0d108cf37273f1a505f8f8b21aeafc4c.tar.gz
Bump version & warn on unveil failure v0.6.5
Diffstat (limited to 'cmd/cetus/main_openbsd.go')
-rw-r--r--cmd/cetus/main_openbsd.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/cetus/main_openbsd.go b/cmd/cetus/main_openbsd.go
index a140071..ae3ac39 100644
--- a/cmd/cetus/main_openbsd.go
+++ b/cmd/cetus/main_openbsd.go
@@ -38,7 +38,9 @@ func unveil() {
 
 	for k, v := range unveilL {
 		err = unix.Unveil(k, v)
-		if err != nil && err.Error() != "no such file or directory" {
+		if err != nil && err.Error() == "no such file or directory" {
+			log.Printf("WARN: Unveil failed on %s", k)
+		} else if err != nil {
 			log.Fatal(fmt.Sprintf("%s :: %s\n%s", k, v,
 				err.Error()))
 		}