mirror of
https://github.com/containers/podman.git
synced 2025-05-20 08:36:23 +08:00
10 lines
180 B
Go
10 lines
180 B
Go
package timezone
|
|
|
|
import (
|
|
"golang.org/x/sys/unix"
|
|
)
|
|
|
|
func openDirectory(path string) (fd int, err error) {
|
|
return unix.Open(path, unix.O_RDONLY|unix.O_PATH|unix.O_CLOEXEC, 0)
|
|
}
|