diff options
author | Andinus <andinus@nand.sh> | 2020-04-04 22:03:25 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-04-04 22:03:25 +0530 |
commit | 68b5fcce0d108cf37273f1a505f8f8b21aeafc4c (patch) | |
tree | 90d3391dfba5afdf7e34467e2170c97276d2ee01 | |
parent | 206a776f64c9163ab597c25a61040c08c012dfd0 (diff) | |
download | cetus-68b5fcce0d108cf37273f1a505f8f8b21aeafc4c.tar.gz |
Bump version & warn on unveil failure v0.6.5
-rw-r--r-- | README.org | 3 | ||||
-rw-r--r-- | cmd/cetus/app.go | 2 | ||||
-rw-r--r-- | cmd/cetus/main_openbsd.go | 4 |
3 files changed, 6 insertions, 3 deletions
diff --git a/README.org b/README.org index dd5e7c0..f9fa6d2 100644 --- a/README.org +++ b/README.org @@ -64,7 +64,8 @@ curl -s https://tildegit.org/andinus/cetus/raw/tag/v0.6.4/scripts/install.sh | s #+END_SRC *** v0.6.0 *Warning*: Don't use random flag on BPOD, it has been disabled in v0.6.1 but -v0.6.0 will cause issues if random flag is used with BPOD. +v0.6.0 will cause issues if random flag is used with BPOD. This was fixed in +newer versions. =cetus set bpod -random # don't do this= diff --git a/cmd/cetus/app.go b/cmd/cetus/app.go index d41edc4..5c9d0e9 100644 --- a/cmd/cetus/app.go +++ b/cmd/cetus/app.go @@ -9,7 +9,7 @@ import ( ) var ( - version string = "v0.6.4" + version string = "v0.6.5" dump bool random bool notify bool 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())) } |