at master 783 B view raw
1diff --git a/src/net/lookup_unix.go b/src/net/lookup_unix.go 2index 7416cb01f8..62722cab14 100644 3--- a/src/net/lookup_unix.go 4+++ b/src/net/lookup_unix.go 5@@ -15,7 +15,7 @@ import ( 6 // readProtocolsOnce loads contents of /etc/protocols into protocols map 7 // for quick access. 8 var readProtocolsOnce = sync.OnceFunc(func() { 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 df73dbabb3..a5dcf2ca1c 100644 16--- a/src/net/port_unix.go 17+++ b/src/net/port_unix.go 18@@ -16,7 +16,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 }