at master 777 B view raw
1diff --git a/src/net/lookup_unix.go b/src/net/lookup_unix.go 2index 8030e3d99e..5a7472d933 100644 3--- a/src/net/lookup_unix.go 4+++ b/src/net/lookup_unix.go 5@@ -21,7 +21,7 @@ var onceReadProtocols sync.Once 6 // readProtocols loads contents of /etc/protocols into protocols map 7 // for quick access. 8 func readProtocols() { 9- file, err := open("/etc/protocols") 10+ file, err := open("@iana@/etc/protocols") 11 if err != nil { 12 return 13 } 14diff --git a/src/net/port_unix.go b/src/net/port_unix.go 15index a9a96a2323..0df6efe9e5 100644 16--- a/src/net/port_unix.go 17+++ b/src/net/port_unix.go 18@@ -17,7 +17,7 @@ import ( 19 var onceReadServices sync.Once 20 21 func readServices() { 22- file, err := open("/etc/services") 23+ file, err := open("@iana@/etc/services") 24 if err != nil { 25 return 26 }