20 lines
557 B
Diff
20 lines
557 B
Diff
--- 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)
|
|
}
|
|
|