diff options
author | Andinus <andinus@nand.sh> | 2020-04-08 01:44:15 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-04-08 01:44:15 +0530 |
commit | 34adb3a7e676a43cd692b4da14398a7d1b0be822 (patch) | |
tree | 52d071f21eda3fdeb9768ecefb41df1c7ee551e8 /cmd/grus/main_openbsd.go | |
parent | 47d22337b3a178b14e1cac287799f2c9dfb336e6 (diff) | |
download | grus-34adb3a7e676a43cd692b4da14398a7d1b0be822.tar.gz |
Prepare for next rewrite
Diffstat (limited to 'cmd/grus/main_openbsd.go')
-rw-r--r-- | cmd/grus/main_openbsd.go | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/cmd/grus/main_openbsd.go b/cmd/grus/main_openbsd.go deleted file mode 100644 index 5222bbe..0000000 --- a/cmd/grus/main_openbsd.go +++ /dev/null @@ -1,40 +0,0 @@ -// +build openbsd - -package main - -import ( - "log" - "os" - - "golang.org/x/sys/unix" - "tildegit.org/andinus/grus/storage" - "tildegit.org/andinus/lynx" -) - -func main() { - unveil() - grus() -} - -func unveil() { - path := storage.GetDir() - err := os.MkdirAll(path, os.ModePerm) - if err != nil { - log.Fatalf("Unable to create directory: %s", path) - } - - paths := make(map[string]string) - - paths[path] = "rwc" - - err = lynx.UnveilPathsStrict(paths) - if err != nil { - log.Fatal(err) - } - - // Block further unveil calls. - err = unix.UnveilBlock() - if err != nil { - log.Fatal(err) - } -} |