☰
Debian Codegraph
@
3.8.0-1
/
/
tools
/
umask_nix.go
☽
☼
tools/umask_nix.go
code
plain
raw
symbols
SCIP
Expat
2013-2018 GitHub, Inc. and Git LFS contributors
debian/copyright
1
//go:build !windows
2
// +build !windows
3
4
package
tools
5
6
import "
syscall
"
7
8
func
doWithUmask
(
mask
int,
f
func() error) error {
9
mask
=
syscall
.
Umask
(
mask
)
10
defer
syscall
.
Umask
(
mask
)
11
return
f
()
12
}