☰
Debian Codegraph
@
0.0~git20160722.0.0cdb66a-4
/
/
os
/
nosymlink-unix.go
☽
☼
os/nosymlink-unix.go
code
plain
raw
symbols
SCIP
Expat
2014-2016 Hugo Landau <
[email protected]
>
debian/copyright
1
// +build linux freebsd openbsd netbsd dragonfly solaris darwin
2
3
package
os
4
5
import
(
6
"os"
7
"syscall"
8
)
9
10
func
openFileNoSymlinks(path
string
, flags
int
, mode os.
FileMode
) (*os.
File
,
error
) {
11
return
os.
OpenFile
(path, flags|syscall.
O_NOFOLLOW
, mode)
12
}