diff options
author | Andinus <andinus@nand.sh> | 2020-04-15 19:20:22 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-04-15 19:20:22 +0530 |
commit | 6e5a88bc7749b3fe4d9419b95a2ba2b596e3f837 (patch) | |
tree | 3cbea158f28ad56729dd88705bc6a4b94083f7b9 /unveil_other.go | |
parent | f479b82ff8aa13b953590a13d31de93de8e53ec2 (diff) | |
download | lynx-6e5a88bc7749b3fe4d9419b95a2ba2b596e3f837.tar.gz |
Rename func UnveilPath to Unveil
UnveilPath is confusing, it's kept only for backwards compatibility & users should use Unveil & UnveilStrict instead of UnveilPath & UnveilPathStrict.
Diffstat (limited to 'unveil_other.go')
-rw-r--r-- | unveil_other.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/unveil_other.go b/unveil_other.go new file mode 100644 index 0000000..a0273c9 --- /dev/null +++ b/unveil_other.go @@ -0,0 +1,15 @@ +// +build !openbsd + +package lynx + +// UnveilPath takes a path, permission & unveils it, it does nothing +// on non OpenBSD systems. +func UnveilPath(_ string, _ string) error { + return nil +} + +// UnveilPathStrict is just a wrapper around unix.Unveil. It does +// nothing on non OpenBSD systems. +func UnveilPathStrict(_ string, _ string) error { + return nil +} |