about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/temporal-cli/darwin-sandbox-fix.patch
blob: b390d492467c247a2c699bd163fc76fbfc20e1c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go
+++ vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go
@@ -696,7 +696,7 @@ func init() {
 	// Load protocols
 	data, err := ioutil.ReadFile("/etc/protocols")
 	if err != nil {
-		if !os.IsNotExist(err) {
+		if !os.IsNotExist(err) && !os.IsPermission(err) {
 			panic(err)
 		}
 
@@ -732,7 +732,7 @@ func init() {
 	// Load services
 	data, err = ioutil.ReadFile("/etc/services")
 	if err != nil {
-		if !os.IsNotExist(err) {
+		if !os.IsNotExist(err) && !os.IsPermission(err) {
 			panic(err)
 		}