forked from toolshed/abra
chore: deps and vendor
This commit is contained in:
3
vendor/github.com/cyphar/filepath-securejoin/openat2_linux.go
generated
vendored
3
vendor/github.com/cyphar/filepath-securejoin/openat2_linux.go
generated
vendored
@ -12,12 +12,11 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
var hasOpenat2 = sync.OnceValue(func() bool {
|
||||
var hasOpenat2 = sync_OnceValue(func() bool {
|
||||
fd, err := unix.Openat2(unix.AT_FDCWD, ".", &unix.OpenHow{
|
||||
Flags: unix.O_PATH | unix.O_CLOEXEC,
|
||||
Resolve: unix.RESOLVE_NO_SYMLINKS | unix.RESOLVE_IN_ROOT,
|
||||
|
Reference in New Issue
Block a user