Vendor in containers/common

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2024-02-06 07:07:52 -05:00
parent a2f0a44501
commit 85904e01f3
5 changed files with 130 additions and 0 deletions

View File

@ -0,0 +1,12 @@
//go:build !windows && !linux
package timezone
import (
"golang.org/x/sys/unix"
)
func openDirectory(path string) (fd int, err error) {
const O_PATH = 0x00400000
return unix.Open(path, unix.O_RDONLY|O_PATH|unix.O_CLOEXEC, 0)
}