oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1package egress
2
3import "golang.org/x/sys/unix"
4
5// openDirNoLinks opens a directory refusing a symbolic link anywhere.
6func openDirNoLinks(dir string) (int, error) {
7 return unix.Openat2(unix.AT_FDCWD, dir, &unix.OpenHow{Flags: unix.O_PATH | unix.O_DIRECTORY | unix.O_CLOEXEC, Resolve: unix.RESOLVE_NO_SYMLINKS | unix.RESOLVE_NO_MAGICLINKS})
8}
9